diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-12 10:51:21 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-12 10:51:21 +0000 |
commit | cd34c7edce57194b4bd49689f970dcde148bae6d (patch) | |
tree | 0e968530c533b3502928ade0567470a3b0a7ff9d /ppapi/proxy/ppapi_proxy_test.h | |
parent | 76ca072f3704bbba63aba1ab27b0ea2448de984f (diff) | |
download | chromium_src-cd34c7edce57194b4bd49689f970dcde148bae6d.zip chromium_src-cd34c7edce57194b4bd49689f970dcde148bae6d.tar.gz chromium_src-cd34c7edce57194b4bd49689f970dcde148bae6d.tar.bz2 |
Revert 117399 - Make it possible to have 1 PpapiGlobals per thread. Update unit tests.
Reason for rever: Broke the sizes check on the mac clobber bot.
This allows us to distinguish trackers in the unit tests, instead of all vars/resources going in 1 tracker. This should also allow us to unit-test PPB proxies.
BUG=
TEST=
Review URL: http://codereview.chromium.org/9034035
TBR=dmichael@chromium.org
Review URL: http://codereview.chromium.org/9139054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_proxy_test.h')
-rw-r--r-- | ppapi/proxy/ppapi_proxy_test.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ppapi/proxy/ppapi_proxy_test.h b/ppapi/proxy/ppapi_proxy_test.h index 5816188..2a612ed 100644 --- a/ppapi/proxy/ppapi_proxy_test.h +++ b/ppapi/proxy/ppapi_proxy_test.h @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// 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. @@ -17,7 +17,6 @@ #include "ppapi/proxy/plugin_proxy_delegate.h" #include "ppapi/proxy/plugin_resource_tracker.h" #include "ppapi/proxy/plugin_var_tracker.h" -#include "ppapi/shared_impl/test_globals.h" #include "testing/gtest/include/gtest/gtest.h" namespace ppapi { @@ -34,7 +33,6 @@ class ProxyTestHarnessBase { PP_Instance pp_instance() const { return pp_instance_; } IPC::TestSink& sink() { return sink_; } - virtual PpapiGlobals* GetGlobals() = 0; // Returns either the plugin or host dispatcher, depending on the test. virtual Dispatcher* GetDispatcher() = 0; @@ -90,7 +88,6 @@ class PluginProxyTestHarness : public ProxyTestHarnessBase { } // ProxyTestHarnessBase implementation. - virtual PpapiGlobals* GetGlobals() { return &plugin_globals_; } virtual Dispatcher* GetDispatcher(); virtual void SetUpHarness(); virtual void SetUpHarnessWithChannel(const IPC::ChannelHandle& channel_handle, @@ -160,15 +157,8 @@ class HostProxyTestHarness : public ProxyTestHarnessBase { virtual ~HostProxyTestHarness(); HostDispatcher* host_dispatcher() { return host_dispatcher_.get(); } - ResourceTracker& resource_tracker() { - return *host_globals_.GetResourceTracker(); - } - VarTracker& var_tracker() { - return *host_globals_.GetVarTracker(); - } // ProxyTestBase implementation. - virtual PpapiGlobals* GetGlobals() { return &host_globals_; } virtual Dispatcher* GetDispatcher(); virtual void SetUpHarness(); virtual void SetUpHarnessWithChannel(const IPC::ChannelHandle& channel_handle, @@ -201,7 +191,6 @@ class HostProxyTestHarness : public ProxyTestHarnessBase { }; private: - ppapi::TestGlobals host_globals_; scoped_ptr<HostDispatcher> host_dispatcher_; DelegateMock delegate_mock_; }; |