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

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: fix Mac bots Created 4 years, 11 months 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
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 "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "content/public/test/content_test_suite_base.h" 11 #include "content/public/test/content_test_suite_base.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "base/win/scoped_com_initializer.h" 14 #include "base/win/scoped_com_initializer.h"
15 #endif 15 #endif
16 #if defined(USE_OZONE)
17 #include "ui/ozone/public/ozone_gpu_test_helper.h"
18 #endif
16 19
17 #if defined(USE_OZONE) 20 #if defined(USE_OZONE)
18 namespace ui { 21 namespace ui {
19 class ClientNativePixmapFactory; 22 class ClientNativePixmapFactory;
20 } // namespace ui 23 } // namespace ui
21 #endif 24 #endif
22 25
23 namespace content { 26 namespace content {
24 27
25 class ContentTestSuite : public ContentTestSuiteBase { 28 class ContentTestSuite : public ContentTestSuiteBase {
26 public: 29 public:
27 ContentTestSuite(int argc, char** argv); 30 ContentTestSuite(int argc, char** argv);
28 ~ContentTestSuite() override; 31 ~ContentTestSuite() override;
29 32
30 protected: 33 protected:
31 void Initialize() override; 34 void Initialize() override;
32 35
33 private: 36 private:
34 #if defined(OS_WIN) 37 #if defined(OS_WIN)
35 base::win::ScopedCOMInitializer com_initializer_; 38 base::win::ScopedCOMInitializer com_initializer_;
36 #endif 39 #endif
37 #if defined(USE_OZONE) 40 #if defined(USE_OZONE)
41 scoped_ptr<ui::OzoneInitializerForTest> ozone_;
38 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; 42 scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_;
39 #endif 43 #endif
40 44
41 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite); 45 DISALLOW_COPY_AND_ASSIGN(ContentTestSuite);
42 }; 46 };
43 47
44 } // namespace content 48 } // namespace content
45 49
46 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_ 50 #endif // CONTENT_TEST_CONTENT_TEST_SUITE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698