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

Side by Side Diff: ui/gfx/test/run_all_unittests.cc

Issue 2037453002: Implement ui/gfx/geometry StructTraits unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix SizeF unit test Created 4 years, 6 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
« ui/gfx/mojo/traits_test_service.mojom ('K') | « ui/gfx/test/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
(...skipping 10 matching lines...) Expand all
21 #if defined(OS_MACOSX) && !defined(OS_IOS) 21 #if defined(OS_MACOSX) && !defined(OS_IOS)
22 #include "base/test/mock_chrome_application_mac.h" 22 #include "base/test/mock_chrome_application_mac.h"
23 #endif 23 #endif
24 24
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 #include <windows.h> 26 #include <windows.h>
27 #include <winuser.h> 27 #include <winuser.h>
28 #include "ui/gfx/win/direct_write.h" 28 #include "ui/gfx/win/direct_write.h"
29 #endif 29 #endif
30 30
31 #if !defined(OS_IOS)
32 #include "mojo/edk/embedder/embedder.h" // nogncheck
33 #endif
34
31 namespace { 35 namespace {
32 36
33 class GfxTestSuite : public base::TestSuite { 37 class GfxTestSuite : public base::TestSuite {
34 public: 38 public:
35 GfxTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) { 39 GfxTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {
36 #if defined(OS_WIN) 40 #if defined(OS_WIN)
37 reset_antialiasing_on_shutdown_ = false; 41 reset_antialiasing_on_shutdown_ = false;
38 #endif 42 #endif
39 } 43 }
40 44
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool reset_antialiasing_on_shutdown_; 91 bool reset_antialiasing_on_shutdown_;
88 #endif 92 #endif
89 DISALLOW_COPY_AND_ASSIGN(GfxTestSuite); 93 DISALLOW_COPY_AND_ASSIGN(GfxTestSuite);
90 }; 94 };
91 95
92 } // namespace 96 } // namespace
93 97
94 int main(int argc, char** argv) { 98 int main(int argc, char** argv) {
95 GfxTestSuite test_suite(argc, argv); 99 GfxTestSuite test_suite(argc, argv);
96 100
101 #if !defined(OS_IOS)
102 mojo::edk::Init();
103 #endif
104
97 return base::LaunchUnitTests( 105 return base::LaunchUnitTests(
98 argc, 106 argc,
99 argv, 107 argv,
100 base::Bind(&GfxTestSuite::Run, base::Unretained(&test_suite))); 108 base::Bind(&GfxTestSuite::Run, base::Unretained(&test_suite)));
101 } 109 }
OLDNEW
« ui/gfx/mojo/traits_test_service.mojom ('K') | « ui/gfx/test/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698