| OLD | NEW |
| 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/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 int RunAllUnittests(int argc, char** argv) { | 57 int RunAllUnittests(int argc, char** argv) { |
| 58 ViewTestSuite test_suite(argc, argv); | 58 ViewTestSuite test_suite(argc, argv); |
| 59 | 59 |
| 60 return base::LaunchUnitTests( | 60 return base::LaunchUnitTests( |
| 61 argc, argv, base::Bind(&ViewTestSuite::Run, | 61 argc, argv, base::Bind(&ViewTestSuite::Run, |
| 62 base::Unretained(&test_suite))); | 62 base::Unretained(&test_suite))); |
| 63 } | 63 } |
| 64 | 64 |
| 65 int RunAllUnittestsSerially(int argc, char** argv) { |
| 66 ViewTestSuite test_suite(argc, argv); |
| 67 |
| 68 return base::LaunchUnitTestsSerially( |
| 69 argc, argv, |
| 70 base::Bind(&ViewTestSuite::Run, base::Unretained(&test_suite))); |
| 71 } |
| 72 |
| 65 } // namespace views | 73 } // namespace views |
| OLD | NEW |