| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef BASE_TEST_SUITE_H_ | 5 #ifndef BASE_TEST_SUITE_H_ |
| 6 #define BASE_TEST_SUITE_H_ | 6 #define BASE_TEST_SUITE_H_ |
| 7 | 7 |
| 8 // Defines a basic test suite framework for running gtest based tests. You can | 8 // Defines a basic test suite framework for running gtest based tests. You can |
| 9 // instantiate this class in your main function and call its Run method to run | 9 // instantiate this class in your main function and call its Run method to run |
| 10 // any gtest based tests that are linked into your executable. | 10 // any gtest based tests that are linked into your executable. |
| 11 | 11 |
| 12 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
| 13 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
| 14 #include "base/debug_on_start.h" | 14 #include "base/debug_on_start.h" |
| 15 #include "base/i18n/icu_util.h" | 15 #include "base/i18n/icu_util.h" |
| 16 #include "base/multiprocess_test.h" | 16 #include "base/multiprocess_test.h" |
| 17 #include "base/nss_init.h" | 17 #include "base/nss_init.h" |
| 18 #include "base/path_service.h" |
| 18 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 19 #include "base/scoped_nsautorelease_pool.h" | 20 #include "base/scoped_nsautorelease_pool.h" |
| 20 #include "base/scoped_ptr.h" | 21 #include "base/scoped_ptr.h" |
| 21 #include "base/time.h" | 22 #include "base/time.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "testing/multiprocess_func_list.h" | 24 #include "testing/multiprocess_func_list.h" |
| 24 | 25 |
| 25 #if defined(OS_LINUX) | 26 #if defined(OS_LINUX) |
| 26 #include <gtk/gtk.h> | 27 #include <gtk/gtk.h> |
| 27 #endif | 28 #endif |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 213 |
| 213 virtual void Shutdown() { | 214 virtual void Shutdown() { |
| 214 } | 215 } |
| 215 | 216 |
| 216 // Make sure that we setup an AtExitManager so Singleton objects will be | 217 // Make sure that we setup an AtExitManager so Singleton objects will be |
| 217 // destroyed. | 218 // destroyed. |
| 218 base::AtExitManager at_exit_manager_; | 219 base::AtExitManager at_exit_manager_; |
| 219 }; | 220 }; |
| 220 | 221 |
| 221 #endif // BASE_TEST_SUITE_H_ | 222 #endif // BASE_TEST_SUITE_H_ |
| OLD | NEW |