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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
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"
11 11
12 using ppapi::HostResource; 12 namespace ppapi {
13
14 namespace pp {
15 namespace proxy { 13 namespace proxy {
16 14
17 namespace { 15 namespace {
18 16
19 bool received_create = false; 17 bool received_create = false;
20 18
21 // Implement PPB_Audio since it's a relatively simple PPB interface and 19 // Implement PPB_Audio since it's a relatively simple PPB interface and
22 // includes bidirectional communication. 20 // includes bidirectional communication.
23 PP_Resource Create(PP_Instance instance, PP_Resource config, 21 PP_Resource Create(PP_Instance instance, PP_Resource config,
24 PPB_Audio_Callback audio_callback, void* user_data) { 22 PPB_Audio_Callback audio_callback, void* user_data) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // that interface in the plugin. 78 // that interface in the plugin.
81 EXPECT_FALSE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO)); 79 EXPECT_FALSE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO));
82 PpapiMsg_PPBAudio_NotifyAudioStreamCreated audio_msg( 80 PpapiMsg_PPBAudio_NotifyAudioStreamCreated audio_msg(
83 INTERFACE_ID_PPB_AUDIO, HostResource(), 0, 81 INTERFACE_ID_PPB_AUDIO, HostResource(), 0,
84 IPC::PlatformFileForTransit(), base::SharedMemoryHandle(), 0); 82 IPC::PlatformFileForTransit(), base::SharedMemoryHandle(), 0);
85 plugin_dispatcher()->OnMessageReceived(audio_msg); 83 plugin_dispatcher()->OnMessageReceived(audio_msg);
86 EXPECT_TRUE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO)); 84 EXPECT_TRUE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO));
87 } 85 }
88 86
89 } // namespace proxy 87 } // namespace proxy
90 } // namespace pp 88 } // namespace ppapi
91 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698