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

Unified Diff: components/exo/test/exo_test_helper.h

Issue 1412093006: components: Add Exosphere component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some ifdefs Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/test/exo_test_base.cc ('k') | components/exo/test/exo_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/test/exo_test_helper.h
diff --git a/components/exo/test/exo_test_helper.h b/components/exo/test/exo_test_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..204440531fee78a4daf059e93d21ffff9c5f3a95
--- /dev/null
+++ b/components/exo/test/exo_test_helper.h
@@ -0,0 +1,36 @@
+// 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 COMPONENTS_EXO_TEST_EXO_TEST_HELPER_H_
+#define COMPONENTS_EXO_TEST_EXO_TEST_HELPER_H_
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace gfx {
+class GpuMemoryBuffer;
+}
+
+namespace exo {
+namespace test {
+
+// A helper class that does common initialization required for Exosphere.
+class ExoTestHelper {
+ public:
+ ExoTestHelper();
+ ~ExoTestHelper();
+
+ // Creates a GpuMemoryBuffer instance that can be used for tests.
+ scoped_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(const gfx::Size& size);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExoTestHelper);
+};
+
+} // namespace test
+} // namespace exo
+
+#endif // COMPONENTS_EXO_TEST_EXO_TEST_HELPER_H_
« no previous file with comments | « components/exo/test/exo_test_base.cc ('k') | components/exo/test/exo_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698