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

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

Issue 1028543002: Turn the utility process image decoder into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments. Created 5 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
« no previous file with comments | « components/image_decoder/public/interfaces/image_decoder.mojom ('k') | skia/public/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/metrics/statistics_recorder.h" 8 #include "base/metrics/statistics_recorder.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/test/launcher/unit_test_launcher.h" 10 #include "base/test/launcher/unit_test_launcher.h"
11 #include "base/test/test_suite.h" 11 #include "base/test/test_suite.h"
12 #include "components/content_settings/core/common/content_settings_pattern.h" 12 #include "components/content_settings/core/common/content_settings_pattern.h"
13 #include "content/public/test/test_content_client_initializer.h" 13 #include "content/public/test/test_content_client_initializer.h"
14 #include "content/public/test/unittest_test_suite.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/base/ui_base_paths.h" 17 #include "ui/base/ui_base_paths.h"
17 #include "url/url_util.h" 18 #include "url/url_util.h"
18 19
19 #if !defined(OS_IOS) 20 #if !defined(OS_IOS)
20 #include "ui/gl/gl_surface.h" 21 #include "ui/gl/gl_surface.h"
21 #endif 22 #endif
22 23
23 #if defined(OS_ANDROID) 24 #if defined(OS_ANDROID)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 private: 108 private:
108 scoped_ptr<content::TestContentClientInitializer> content_initializer_; 109 scoped_ptr<content::TestContentClientInitializer> content_initializer_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(ComponentsUnitTestEventListener); 111 DISALLOW_COPY_AND_ASSIGN(ComponentsUnitTestEventListener);
111 }; 112 };
112 113
113 } // namespace 114 } // namespace
114 115
115 int main(int argc, char** argv) { 116 int main(int argc, char** argv) {
116 ComponentsTestSuite test_suite(argc, argv); 117 // UnitTestTestSuite initializes blink.
118 content::UnitTestTestSuite test_suite(new ComponentsTestSuite(argc, argv));
117 119
118 // The listener will set up common test environment for all components unit 120 // The listener will set up common test environment for all components unit
119 // tests. 121 // tests.
120 testing::TestEventListeners& listeners = 122 testing::TestEventListeners& listeners =
121 testing::UnitTest::GetInstance()->listeners(); 123 testing::UnitTest::GetInstance()->listeners();
122 listeners.Append(new ComponentsUnitTestEventListener()); 124 listeners.Append(new ComponentsUnitTestEventListener());
123 125
124 return base::LaunchUnitTests( 126 return base::LaunchUnitTests(
125 argc, argv, base::Bind(&base::TestSuite::Run, 127 argc, argv, base::Bind(&content::UnitTestTestSuite::Run,
126 base::Unretained(&test_suite))); 128 base::Unretained(&test_suite)));
127 } 129 }
OLDNEW
« no previous file with comments | « components/image_decoder/public/interfaces/image_decoder.mojom ('k') | skia/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698