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

Unified Diff: content/renderer/pepper/unittest_instance_util.h

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug in GetAbsolutePath (fixes FlashDRM test failure) Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698