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

Side by Side Diff: ppapi/proxy/plugin_dispatcher_unittest.cc

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_array_buffer_var.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "ipc/ipc_message_utils.h" 6 #include "ipc/ipc_message_utils.h"
7 #include "ppapi/c/ppb_audio.h" 7 #include "ppapi/c/ppb_audio.h"
8 #include "ppapi/c/ppp_instance.h" 8 #include "ppapi/c/ppp_instance.h"
9 #include "ppapi/proxy/ppapi_messages.h" 9 #include "ppapi/proxy/ppapi_messages.h"
10 #include "ppapi/proxy/ppapi_proxy_test.h" 10 #include "ppapi/proxy/ppapi_proxy_test.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Sending a request for a supported PPP interface should succeed. 67 // Sending a request for a supported PPP interface should succeed.
68 EXPECT_TRUE(SupportsInterface(PPP_INSTANCE_INTERFACE)); 68 EXPECT_TRUE(SupportsInterface(PPP_INSTANCE_INTERFACE));
69 } 69 }
70 70
71 TEST_F(PluginDispatcherTest, PPBCreation) { 71 TEST_F(PluginDispatcherTest, PPBCreation) {
72 // Sending a PPB message out of the blue should create a target proxy for 72 // Sending a PPB message out of the blue should create a target proxy for
73 // that interface in the plugin. 73 // that interface in the plugin.
74 EXPECT_FALSE(HasTargetProxy(API_ID_PPB_AUDIO)); 74 EXPECT_FALSE(HasTargetProxy(API_ID_PPB_AUDIO));
75 PpapiMsg_PPBAudio_NotifyAudioStreamCreated audio_msg( 75 PpapiMsg_PPBAudio_NotifyAudioStreamCreated audio_msg(
76 API_ID_PPB_AUDIO, HostResource(), 0, 76 API_ID_PPB_AUDIO, HostResource(), 0,
77 IPC::PlatformFileForTransit(), base::SharedMemoryHandle(), 0); 77 ppapi::proxy::SerializedHandle(
78 ppapi::proxy::SerializedHandle::SOCKET),
79 ppapi::proxy::SerializedHandle(
80 ppapi::proxy::SerializedHandle::SHARED_MEMORY));
78 plugin_dispatcher()->OnMessageReceived(audio_msg); 81 plugin_dispatcher()->OnMessageReceived(audio_msg);
79 EXPECT_TRUE(HasTargetProxy(API_ID_PPB_AUDIO)); 82 EXPECT_TRUE(HasTargetProxy(API_ID_PPB_AUDIO));
80 } 83 }
81 84
82 } // namespace proxy 85 } // namespace proxy
83 } // namespace ppapi 86 } // namespace ppapi
84 87
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_array_buffer_var.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698