OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |