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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_param_traits.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/scoped_ptr.h"
6 #include "ipc/ipc_test_sink.h"
7 #include "ppapi/c/pp_instance.h"
8 #include "ppapi/proxy/plugin_dispatcher.h"
9 #include "ppapi/proxy/plugin_resource_tracker.h"
10 #include "ppapi/proxy/plugin_var_tracker.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13 namespace pp {
14 namespace proxy {
15
16 // Test harness for the plugin side of the proxy.
17 class PluginProxyTest : public testing::Test {
18 public:
19 PluginProxyTest();
20 ~PluginProxyTest();
21
22 virtual void SetUp();
23 virtual void TearDown();
24
25 // The instance ID associated with the plugin dispatcher.
26 PP_Instance pp_instance() const { return pp_instance_; }
27
28 PluginDispatcher* plugin_dispatcher() { return plugin_dispatcher_.get(); }
29
30 PluginResourceTracker& resource_tracker() { return resource_tracker_; }
31 PluginVarTracker& var_tracker() { return var_tracker_; }
32
33 IPC::TestSink& sink() { return sink_; }
34
35 private:
36 PluginResourceTracker resource_tracker_;
37 PluginVarTracker var_tracker_;
38
39 PP_Instance pp_instance_;
40 scoped_ptr<PluginDispatcher> plugin_dispatcher_;
41
42 IPC::TestSink sink_;
43 };
44
45 } // namespace proxy
46 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_param_traits.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698