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

Unified Diff: ppapi/tests/test_talk_private.cc

Issue 16271005: Implement pepper interface and plumbing for HRD's UI on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't use IPC::Message::Schema::Read in unittest - build break Created 7 years, 6 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 | « ppapi/tests/test_talk_private.h ('k') | ppapi/thunk/interfaces_ppb_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_talk_private.cc
diff --git a/ppapi/tests/test_talk_private.cc b/ppapi/tests/test_talk_private.cc
index 4b49ed1c0e97d8e6d74e4021a1a3c81236f4ba5f..3af0ff34d56f29a01611b3712f28b30960c774c4 100644
--- a/ppapi/tests/test_talk_private.cc
+++ b/ppapi/tests/test_talk_private.cc
@@ -20,7 +20,7 @@ REGISTER_TEST_CASE(TalkPrivate);
TestTalkPrivate::TestTalkPrivate(TestingInstance* instance)
: TestCase(instance),
- talk_private_interface_(NULL) {
+ talk_private_interface_1(NULL) {
}
bool TestTalkPrivate::Init() {
@@ -29,14 +29,14 @@ bool TestTalkPrivate::Init() {
return false;
}
- talk_private_interface_ = static_cast<const PPB_Talk_Private*>(
- pp::Module::Get()->GetBrowserInterface(PPB_TALK_PRIVATE_INTERFACE));
+ talk_private_interface_1 = static_cast<const PPB_Talk_Private_1_0*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_TALK_PRIVATE_INTERFACE_1_0));
#if defined(__native_client__)
- if (talk_private_interface_)
+ if (talk_private_interface_1)
instance_->AppendError("TalkPrivate interface is supported by NaCl");
#else
- if (!talk_private_interface_)
+ if (!talk_private_interface_1)
instance_->AppendError("TalkPrivate interface not available");
#endif
return true;
@@ -47,7 +47,7 @@ void TestTalkPrivate::RunTests(const std::string& filter) {
}
std::string TestTalkPrivate::TestGetPermission() {
- if (!talk_private_interface_) {
+ if (!talk_private_interface_1) {
PASS();
}
@@ -62,11 +62,11 @@ std::string TestTalkPrivate::TestGetPermission() {
PASS();
#endif
- PP_Resource talk_resource = talk_private_interface_->Create(
+ PP_Resource talk_resource = talk_private_interface_1->Create(
instance_->pp_instance());
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
- callback.WaitForResult(talk_private_interface_->GetPermission(talk_resource,
+ callback.WaitForResult(talk_private_interface_1->GetPermission(talk_resource,
callback.GetCallback().pp_completion_callback()));
CHECK_CALLBACK_BEHAVIOR(callback);
« no previous file with comments | « ppapi/tests/test_talk_private.h ('k') | ppapi/thunk/interfaces_ppb_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698