Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/test/content_test_suite.h

Issue 1208603002: content: implement unittests backend for Ozone GBM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ContentTestSuite initialize message loop Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/test/content_test_suite.cc » ('j') | content/test/content_test_suite.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/test/content_test_suite_base.h" 9 #include "content/public/test/content_test_suite_base.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "base/win/scoped_com_initializer.h" 12 #include "base/win/scoped_com_initializer.h"
13 #endif 13 #endif
14 #if defined(USE_OZONE)
15 #include "ui/ozone/public/ozone_gpu_test_helper.h"
16 #endif
14 17
15 #if defined(USE_OZONE) 18 #if defined(USE_OZONE)
16 namespace ui { 19 namespace ui {
17 class ClientNativePixmapFactory; 20 class ClientNativePixmapFactory;
18 } // namespace ui 21 } // namespace ui
19 #endif 22 #endif
20 23
21 namespace content { 24 namespace content {
22 25
23 class ContentTestSuite : public ContentTestSuiteBase { 26 class ContentTestSuite : public ContentTestSuiteBase {
24 public: 27 public:
25 ContentTestSuite(int argc, char** argv); 28 ContentTestSuite(int argc, char** argv);
26 ~ContentTestSuite() override; 29 ~ContentTestSuite() override;
27 30
28 protected: 31 protected:
29 void Initialize() override; 32 void Initialize() override;
30 33
31 private: 34 private:
32 #if defined(OS_WIN) 35 #if defined(OS_WIN)
33 base::win::ScopedCOMInitializer com_initializer_; 36 base::win::ScopedCOMInitializer com_initializer_;
34 #endif 37 #endif
35 #if defined(USE_OZONE) 38 #if defined(USE_OZONE)
39 scoped_ptr<ui::OzoneInitializerForTest> ozone_;
36 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; 40 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_;
37 #endif 41 #endif
38 42
39 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite); 43 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite);
40 }; 44 };
41 45
42 } // namespace content 46 } // namespace content
43 47
44 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_ 48 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « no previous file | content/test/content_test_suite.cc » ('j') | content/test/content_test_suite.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698