1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19

content / public / test / android / ui_thread_scheduler_test_utils.cc [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/android/jni_android.h"
#include "content/browser/browser_main_loop.h"

// Must come after all headers that specialize FromJniType() / ToJniType().
#include "content/public/test/android/content_test_jni/UiThreadSchedulerTestUtils_jni.h"

namespace content {

void JNI_UiThreadSchedulerTestUtils_PostBrowserMainLoopStartupTasks(
    JNIEnv* env,
    jboolean enabled) {
  BrowserMainLoop::EnableStartupTasks(enabled);
}

}  // namespace content