Index: content/test/test_native_pixmap_manager_ozone.h |
diff --git a/content/test/test_native_pixmap_manager_ozone.h b/content/test/test_native_pixmap_manager_ozone.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b154f8cc9eb2ef5c98027624904c1512ce31968c |
--- /dev/null |
+++ b/content/test/test_native_pixmap_manager_ozone.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+#define CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/ozone/public/native_pixmap_manager.h" |
+ |
+namespace content { |
+ |
+class TestNativePixmapManager : public ui::NativePixmapManager { |
+ public: |
+ static TestNativePixmapManager* GetInstance(); |
+ ~TestNativePixmapManager() override; |
+ |
+ // ui::NativePixmapManager: |
+ void Initialize(const base::FileDescriptor& device_fd) override; |
+ std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
+ const override; |
+ |
+ private: |
+ friend struct TestNativePixmapManagerTrait; |
+ TestNativePixmapManager(); |
+ |
+ scoped_ptr<ui::NativePixmapManager> pixmap_manager_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TestNativePixmapManager); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_TEST_TEST_NATIVE_PIXMAP_MANAGER_OZONE_H_ |