Index: content/renderer/pepper/unittest_instance_util.h |
diff --git a/content/renderer/pepper/unittest_instance_util.h b/content/renderer/pepper/unittest_instance_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e0556695f1bdc5bef6457ccd767fe487f3897db |
--- /dev/null |
+++ b/content/renderer/pepper/unittest_instance_util.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2013 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_RENDERER_PEPPER_UNITTEST_INSTANCE_UTIL_H_ |
+#define CONTENT_RENDERER_PEPPER_UNITTEST_INSTANCE_UTIL_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace content { |
+class PepperPluginInstanceImpl; |
+class PluginModule; |
+ |
+// Creates a PluginModule and PepperPluginInstanceImpl for use in tests. This |
+// was split out from PpapiUnittest to allow this to be used from tests based |
+// on RenderViewTest. |
+class UnittestInstanceUtil { |
+ public: |
+ UnittestInstanceUtil(); |
+ ~UnittestInstanceUtil(); |
+ |
+ bool SetUp(); |
+ void TearDown(); |
+ |
+ PepperPluginInstanceImpl* instance() const; |
+ PluginModule* module() const; |
+ |
+ private: |
+ PepperPluginInstanceImpl* instance_; |
+ PluginModule* module_; |
+ DISALLOW_COPY_AND_ASSIGN(UnittestInstanceUtil); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_PEPPER_UNITTEST_INSTANCE_UTIL_H_ |