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 #ifndef CONTENT_TEST_CONTENT_TEST_SUITE_H_ | 5 #ifndef CONTENT_TEST_CONTENT_TEST_SUITE_H_ |
6 #define CONTENT_TEST_CONTENT_TEST_SUITE_H_ | 6 #define CONTENT_TEST_CONTENT_TEST_SUITE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/test/test_io_thread.h" |
10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
11 #include "content/public/test/content_test_suite_base.h" | 12 #include "content/public/test/content_test_suite_base.h" |
12 | 13 |
13 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
14 #include "base/win/scoped_com_initializer.h" | 15 #include "base/win/scoped_com_initializer.h" |
15 #endif | 16 #endif |
16 | 17 |
17 #if defined(USE_OZONE) | 18 #if defined(USE_OZONE) |
18 namespace ui { | 19 namespace ui { |
19 class ClientNativePixmapFactory; | 20 class ClientNativePixmapFactory; |
20 } // namespace ui | 21 } // namespace ui |
21 #endif | 22 #endif |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 class ContentTestSuite : public ContentTestSuiteBase { | 26 class ContentTestSuite : public ContentTestSuiteBase { |
26 public: | 27 public: |
27 ContentTestSuite(int argc, char** argv); | 28 ContentTestSuite(int argc, char** argv); |
28 ~ContentTestSuite() override; | 29 ~ContentTestSuite() override; |
29 | 30 |
30 protected: | 31 protected: |
31 void Initialize() override; | 32 void Initialize() override; |
32 | 33 |
33 private: | 34 private: |
| 35 base::TestIOThread test_io_thread_; |
34 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
35 base::win::ScopedCOMInitializer com_initializer_; | 37 base::win::ScopedCOMInitializer com_initializer_; |
36 #endif | 38 #endif |
37 #if defined(USE_OZONE) | 39 #if defined(USE_OZONE) |
38 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 40 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
39 #endif | 41 #endif |
40 | 42 |
41 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite); | 43 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite); |
42 }; | 44 }; |
43 | 45 |
44 } // namespace content | 46 } // namespace content |
45 | 47 |
46 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_ | 48 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_ |
OLD | NEW |