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

Unified Diff: webkit/plugins/ppapi/ppapi_unittest.cc

Issue 7038044: First step to remove scripting from PPP_Instance and PPB_Instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 7 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
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/resource_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppapi_unittest.cc
diff --git a/webkit/plugins/ppapi/ppapi_unittest.cc b/webkit/plugins/ppapi/ppapi_unittest.cc
index b5e4b5fdd271f2836ba2dd7617354521572c7cc8..7dc70d39e5ed55885551ae3bf8ea62541754f417 100644
--- a/webkit/plugins/ppapi/ppapi_unittest.cc
+++ b/webkit/plugins/ppapi/ppapi_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 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.
@@ -55,18 +55,13 @@ PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
return PP_FALSE;
}
-PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) {
- return PP_MakeUndefined();
-}
-
static PPP_Instance mock_instance_interface = {
&Instance_DidCreate,
&Instance_DidDestroy,
&Instance_DidChangeView,
&Instance_DidChangeFocus,
&Instance_HandleInputEvent,
- &Instance_HandleDocumentLoad,
- &Instance_GetInstanceObject
+ &Instance_HandleDocumentLoad
};
} // namespace
@@ -95,7 +90,7 @@ void PpapiUnittest::SetUp() {
// Initialize the mock instance.
instance_ = new PluginInstance(delegate_.get(), module(),
- static_cast<const PPP_Instance*>(
+ PluginInstance::new_instance_interface<PPP_Instance>(
GetMockInterface(PPP_INSTANCE_INTERFACE)));
}
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/resource_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698