Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: components/test/run_all_unittests.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 private: 52 private:
53 void Initialize() override { 53 void Initialize() override {
54 base::TestSuite::Initialize(); 54 base::TestSuite::Initialize();
55 55
56 // Initialize the histograms subsystem, so that any histograms hit in tests 56 // Initialize the histograms subsystem, so that any histograms hit in tests
57 // are correctly registered with the statistics recorder and can be queried 57 // are correctly registered with the statistics recorder and can be queried
58 // by tests. 58 // by tests.
59 base::StatisticsRecorder::Initialize(); 59 base::StatisticsRecorder::Initialize();
60 60
61 #if !defined(OS_IOS) 61 #if !defined(OS_IOS)
62 gfx::GLSurfaceTestSupport::InitializeOneOff(); 62 gl::GLSurfaceTestSupport::InitializeOneOff();
63 #endif 63 #endif
64 #if defined(OS_ANDROID) 64 #if defined(OS_ANDROID)
65 // Register JNI bindings for android. 65 // Register JNI bindings for android.
66 JNIEnv* env = base::android::AttachCurrentThread(); 66 JNIEnv* env = base::android::AttachCurrentThread();
67 ASSERT_TRUE(content::RegisterJniForTesting(env)); 67 ASSERT_TRUE(content::RegisterJniForTesting(env));
68 ASSERT_TRUE(gfx::android::RegisterJni(env)); 68 ASSERT_TRUE(gfx::android::RegisterJni(env));
69 ASSERT_TRUE(instance_id::android::RegisterInstanceIDJni(env)); 69 ASSERT_TRUE(instance_id::android::RegisterInstanceIDJni(env));
70 ASSERT_TRUE(instance_id::ScopedUseFakeInstanceIDAndroid::RegisterJni(env)); 70 ASSERT_TRUE(instance_id::ScopedUseFakeInstanceIDAndroid::RegisterJni(env));
71 ASSERT_TRUE(invalidation::android::RegisterInvalidationJni(env)); 71 ASSERT_TRUE(invalidation::android::RegisterInvalidationJni(env));
72 ASSERT_TRUE(policy::android::RegisterPolicy(env)); 72 ASSERT_TRUE(policy::android::RegisterPolicy(env));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 listeners.Append(new ComponentsUnitTestEventListener()); 152 listeners.Append(new ComponentsUnitTestEventListener());
153 153
154 #if defined(OS_CHROMEOS) 154 #if defined(OS_CHROMEOS)
155 mojo::edk::Init(); 155 mojo::edk::Init();
156 #endif 156 #endif
157 157
158 return base::LaunchUnitTests( 158 return base::LaunchUnitTests(
159 argc, argv, base::Bind(&base::TestSuite::Run, 159 argc, argv, base::Bind(&base::TestSuite::Run,
160 base::Unretained(&test_suite))); 160 base::Unretained(&test_suite)));
161 } 161 }
OLDNEW
« no previous file with comments | « components/mus/surfaces/surfaces_context_provider.cc ('k') | content/app/android/child_process_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698