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

Side by Side Diff: ui/ozone/platform/test/ozone_platform_test.h

Issue 132543002: Not for review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ 5 #ifndef UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_
6 #define UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ 6 #define UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "ui/events/ozone/evdev/event_factory.h" 9 #include "ui/events/ozone/evdev/event_factory.h"
10 #include "ui/gfx/ozone/impl/file_surface_factory.h" 10 #include "ui/gfx/ozone/impl/file_surface_factory.h"
11 #include "ui/ozone/ozone_platform.h" 11 #include "ui/ozone/ozone_platform.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 // OzonePlatform for testing 15 // OzonePlatform for testing
16 // 16 //
17 // This platform dumps images to a file for testing purposes. 17 // This platform dumps images to a file for testing purposes.
18 class OzonePlatformTest : public OzonePlatform { 18 class OzonePlatformTest : public OzonePlatform {
19 public: 19 public:
20 OzonePlatformTest(const base::FilePath& dump_file); 20 OzonePlatformTest(const base::FilePath& dump_file);
21 virtual ~OzonePlatformTest(); 21 virtual ~OzonePlatformTest();
22 22
23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; 23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; 24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
25 virtual ui::InputMethodContextFactoryOzone* 25 virtual ui::InputMethodContextFactoryOzone*
26 GetInputMethodContextFactoryOzone() OVERRIDE; 26 GetInputMethodContextFactoryOzone() OVERRIDE;
27 virtual gfx::OverlayHALOzone* GetOverlayHALOzone() OVERRIDE;
27 28
28 private: 29 private:
29 gfx::FileSurfaceFactory surface_factory_ozone_; 30 gfx::FileSurfaceFactory surface_factory_ozone_;
30 ui::EventFactoryEvdev event_factory_ozone_; 31 ui::EventFactoryEvdev event_factory_ozone_;
31 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; 32 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); 34 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest);
34 }; 35 };
35 36
36 // Constructor hook for use in ozone_platform_list.cc 37 // Constructor hook for use in ozone_platform_list.cc
37 OzonePlatform* CreateOzonePlatformTest(); 38 OzonePlatform* CreateOzonePlatformTest();
38 39
39 } // namespace ui 40 } // namespace ui
40 41
41 #endif // UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ 42 #endif // UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698