OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_TEST_SUITE_H_ |
| 6 #define UI_BASE_TEST_SUITE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "build/build_config.h" |
| 10 |
| 11 #include "base/path_service.h" |
| 12 #include "base/mac/scoped_nsautorelease_pool.h" |
| 13 #include "base/test/test_suite.h" |
| 14 #include "build/build_config.h" |
| 15 |
| 16 #if defined(OS_MACOSX) |
| 17 #include "base/mac/mac_util.h" |
| 18 #endif |
| 19 |
| 20 class UiBaseTestSuite : public base::TestSuite { |
| 21 public: |
| 22 UiBaseTestSuite(int argc, char** argv) : TestSuite(argc, argv) { |
| 23 } |
| 24 |
| 25 protected: |
| 26 |
| 27 virtual void Initialize() { |
| 28 base::mac::ScopedNSAutoreleasePool autorelease_pool; |
| 29 |
| 30 TestSuite::Initialize(); |
| 31 } |
| 32 |
| 33 virtual void Shutdown() { |
| 34 TestSuite::Shutdown(); |
| 35 } |
| 36 }; |
| 37 |
| 38 #endif // UI_BASE_TEST_SUITE_H_ |
OLD | NEW |