Introduce a loading policy to the renderer scheduler
[chromium-blink-merge.git] / content / test / run_all_unittests.cc
blob58e33047b25b9d31f38e89c3e4d33d56bcc36a85
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/bind.h"
6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "content/app/mojo/mojo_init.h"
8 #include "content/public/test/unittest_test_suite.h"
9 #include "content/test/content_test_suite.h"
11 #if defined(OS_ANDROID)
12 #include "base/android/jni_android.h"
13 #include "base/test/test_file_util.h"
14 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
15 #endif
17 int main(int argc, char** argv) {
18 #if defined(OS_ANDROID)
19 // Register JNI bindings for android.
20 base::RegisterContentUriTestUtils(base::android::AttachCurrentThread());
22 // Android wants to call GetChannelId() (even though GPU channels
23 // are not getting created in content_unittests).
24 content::BrowserGpuChannelHostFactory::Initialize(false);
25 #endif
26 #if !defined(OS_IOS)
27 content::InitializeMojo();
28 #endif
29 content::UnitTestTestSuite test_suite(
30 new content::ContentTestSuite(argc, argv));
32 return base::LaunchUnitTests(
33 argc, argv, base::Bind(&content::UnitTestTestSuite::Run,
34 base::Unretained(&test_suite)));