| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" | 7 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/test_suite.h" | 8 #include "base/test/test_suite.h" |
| 9 #include "build/build_config.h" |
| 8 | 10 |
| 9 #if defined(OS_MACOSX) && !defined(OS_IOS) | 11 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 10 #include "base/test/mock_chrome_application_mac.h" | 12 #include "base/test/mock_chrome_application_mac.h" |
| 11 #endif | 13 #endif |
| 12 | 14 |
| 13 namespace { | 15 namespace { |
| 14 | 16 |
| 15 class GlTestSuite : public base::TestSuite { | 17 class GlTestSuite : public base::TestSuite { |
| 16 public: | 18 public: |
| 17 GlTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) { | 19 GlTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 } // namespace | 39 } // namespace |
| 38 | 40 |
| 39 int main(int argc, char** argv) { | 41 int main(int argc, char** argv) { |
| 40 GlTestSuite test_suite(argc, argv); | 42 GlTestSuite test_suite(argc, argv); |
| 41 | 43 |
| 42 return base::LaunchUnitTests( | 44 return base::LaunchUnitTests( |
| 43 argc, | 45 argc, |
| 44 argv, | 46 argv, |
| 45 base::Bind(&GlTestSuite::Run, base::Unretained(&test_suite))); | 47 base::Bind(&GlTestSuite::Run, base::Unretained(&test_suite))); |
| 46 } | 48 } |
| OLD | NEW |