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

Unified Diff: ppapi/proxy/ppapi_proxy_test.cc

Issue 704913002: PPAPI: Make GetProxiedInterface not re-enter the plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make SimulateInputEvent test message asynchronous. Created 6 years, 1 month 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.cc
diff --git a/ppapi/proxy/ppapi_proxy_test.cc b/ppapi/proxy/ppapi_proxy_test.cc
index 2c0b1365d358476568b056a01c5cec0bf67deff9..b75f4b83b19bdd32fe2c55c8f76c0685e3ca0324 100644
--- a/ppapi/proxy/ppapi_proxy_test.cc
+++ b/ppapi/proxy/ppapi_proxy_test.cc
@@ -122,13 +122,13 @@ void ProxyTestHarnessBase::RegisterTestInterface(const char* name,
registered_interfaces_[name] = test_interface;
}
-bool ProxyTestHarnessBase::SupportsInterface(const char* name) {
+bool ProxyTestHarnessBase::IsInterfaceSupported(const char* name) {
sink().ClearMessages();
// IPC doesn't actually write to this when we send a message manually
// not actually using IPC.
bool unused_result = false;
- PpapiMsg_SupportsInterface msg(name, &unused_result);
+ PpapiMsg_IsInterfaceSupported msg(name, &unused_result);
GetDispatcher()->OnMessageReceived(msg);
const IPC::Message* reply_msg =
@@ -137,8 +137,8 @@ bool ProxyTestHarnessBase::SupportsInterface(const char* name) {
if (!reply_msg)
return false;
- TupleTypes<PpapiMsg_SupportsInterface::ReplyParam>::ValueTuple reply_data;
- EXPECT_TRUE(PpapiMsg_SupportsInterface::ReadReplyParam(
+ TupleTypes<PpapiMsg_IsInterfaceSupported::ReplyParam>::ValueTuple reply_data;
+ EXPECT_TRUE(PpapiMsg_IsInterfaceSupported::ReadReplyParam(
reply_msg, &reply_data));
sink().ClearMessages();

Powered by Google App Engine
This is Rietveld 408576698