Index: content/test/test_client_native_pixmap_manager_ozone.h |
diff --git a/content/test/test_client_native_pixmap_manager_ozone.h b/content/test/test_client_native_pixmap_manager_ozone.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..16282d9c6e330bbd4fa43a978c6ad1324de64568 |
--- /dev/null |
+++ b/content/test/test_client_native_pixmap_manager_ozone.h |
@@ -0,0 +1,38 @@ |
+// 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_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+#define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+ |
+#include "ui/ozone/public/client_native_pixmap_manager.h" |
+ |
+namespace content { |
+ |
+class TestClientNativePixmapManager : public ui::ClientNativePixmapManager { |
+ public: |
+ static TestClientNativePixmapManager* GetInstance(); |
+ ~TestClientNativePixmapManager() override; |
+ |
+ // ui::ClientNativePixmapManager: |
+ std::vector<Configuration> GetSupportedConfigurations() const override; |
+ scoped_ptr<ui::ClientNativePixmap> ImportClientNativePixmap( |
+ base::FileDescriptor handle, |
+ gfx::Size size, |
+ ui::NativePixmapFormat format, |
+ ui::NativePixmapUsage usage) override; |
+ |
+ private: |
+ friend struct TestClientNativePixmapManagerTrait; |
+ TestClientNativePixmapManager(); |
+ |
+ void Initialize(const base::FileDescriptor& virtual_device) override; |
+ |
+ scoped_ptr<ui::ClientNativePixmapManager> pixmap_manager_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapManager); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |