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

Unified Diff: ppapi/proxy/ppapi_proxy_test.h

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: ppapi/proxy/ppapi_proxy_test.h
===================================================================
--- ppapi/proxy/ppapi_proxy_test.h (revision 0)
+++ ppapi/proxy/ppapi_proxy_test.h (revision 0)
@@ -0,0 +1,46 @@
+// Copyright (c) 2011 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.
+
+#include "base/scoped_ptr.h"
+#include "ipc/ipc_test_sink.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/proxy/plugin_dispatcher.h"
+#include "ppapi/proxy/plugin_resource_tracker.h"
+#include "ppapi/proxy/plugin_var_tracker.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace pp {
+namespace proxy {
+
+// Test harness for the plugin side of the proxy.
+class PluginProxyTest : public testing::Test {
+ public:
+ PluginProxyTest();
+ ~PluginProxyTest();
+
+ virtual void SetUp();
+ virtual void TearDown();
+
+ // The instance ID associated with the plugin dispatcher.
+ PP_Instance pp_instance() const { return pp_instance_; }
+
+ PluginDispatcher* plugin_dispatcher() { return plugin_dispatcher_.get(); }
+
+ PluginResourceTracker& resource_tracker() { return resource_tracker_; }
+ PluginVarTracker& var_tracker() { return var_tracker_; }
+
+ IPC::TestSink& sink() { return sink_; }
+
+ private:
+ PluginResourceTracker resource_tracker_;
+ PluginVarTracker var_tracker_;
+
+ PP_Instance pp_instance_;
+ scoped_ptr<PluginDispatcher> plugin_dispatcher_;
+
+ IPC::TestSink sink_;
+};
+
+} // namespace proxy
+} // namespace pp
Property changes on: ppapi/proxy/ppapi_proxy_test.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698