| Index: ppapi/proxy/ppp_instance_proxy_unittest.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppp_instance_proxy_unittest.cc (revision 117413)
|
| +++ ppapi/proxy/ppp_instance_proxy_unittest.cc (working copy)
|
| @@ -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.
|
|
|
| @@ -12,8 +12,6 @@
|
| #include "ppapi/c/private/ppb_flash_fullscreen.h"
|
| #include "ppapi/proxy/ppapi_messages.h"
|
| #include "ppapi/proxy/ppapi_proxy_test.h"
|
| -#include "ppapi/shared_impl/ppb_view_shared.h"
|
| -#include "ppapi/shared_impl/scoped_pp_resource.h"
|
|
|
| namespace ppapi {
|
| namespace proxy {
|
| @@ -116,11 +114,10 @@
|
| host().RegisterTestInterface(PPB_FULLSCREEN_INTERFACE,
|
| &ppb_fullscreen);
|
|
|
| - // Grab the host-side proxy for the interface. The browser only speaks 1.1,
|
| - // while the proxy ensures support for the 1.0 version on the plugin side.
|
| - const PPP_Instance_1_1* ppp_instance = static_cast<const PPP_Instance_1_1*>(
|
| + // Grab the host-side proxy for the 1.0 interface.
|
| + const PPP_Instance_1_0* ppp_instance = static_cast<const PPP_Instance_1_0*>(
|
| host().host_dispatcher()->GetProxiedInterface(
|
| - PPP_INSTANCE_INTERFACE_1_1));
|
| + PPP_INSTANCE_INTERFACE_1_0));
|
|
|
| // Call each function in turn, make sure we get the expected values and
|
| // returns.
|
| @@ -143,8 +140,6 @@
|
| uint32_t expected_argc = expected_argn.size();
|
| bool_to_return = PP_TRUE;
|
| ResetReceived();
|
| - // Tell the host resource tracker about the instance.
|
| - host().resource_tracker().DidCreateInstance(expected_instance);
|
| EXPECT_EQ(bool_to_return, ppp_instance->DidCreate(expected_instance,
|
| expected_argc,
|
| &argn_to_pass[0],
|
| @@ -156,17 +151,9 @@
|
|
|
| PP_Rect expected_position = { {1, 2}, {3, 4} };
|
| PP_Rect expected_clip = { {5, 6}, {7, 8} };
|
| - ViewData data;
|
| - data.rect = expected_position;
|
| - data.is_fullscreen = false;
|
| - data.is_page_visible = true;
|
| - data.clip_rect = expected_clip;
|
| ResetReceived();
|
| - ScopedPPResource view_resource(
|
| - ScopedPPResource::PassRef(),
|
| - (new PPB_View_Shared(PPB_View_Shared::InitAsImpl(),
|
| - expected_instance, data))->GetReference());
|
| - ppp_instance->DidChangeView(expected_instance, view_resource);
|
| + ppp_instance->DidChangeView(expected_instance, &expected_position,
|
| + &expected_clip);
|
| did_change_view_called.Wait();
|
| EXPECT_EQ(received_instance, expected_instance);
|
| EXPECT_EQ(received_position.point.x, expected_position.point.x);
|
| @@ -189,8 +176,6 @@
|
| // HandleResourceLoad. It also requires
|
| // PPB_Core.AddRefResource and for PPB_URLLoader to be
|
| // registered.
|
| -
|
| - host().resource_tracker().DidDeleteInstance(expected_instance);
|
| }
|
|
|
| } // namespace proxy
|
|
|