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

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

Issue 11299147: Pepper proxy: make the browser sender handle the proxy lock properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/proxy/ppapi_proxy_test.h" 5 #include "ppapi/proxy/ppapi_proxy_test.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 uint32 PluginProxyTestHarness::PluginDelegateMock::Register( 243 uint32 PluginProxyTestHarness::PluginDelegateMock::Register(
244 PluginDispatcher* plugin_dispatcher) { 244 PluginDispatcher* plugin_dispatcher) {
245 return 0; 245 return 0;
246 } 246 }
247 247
248 void PluginProxyTestHarness::PluginDelegateMock::Unregister( 248 void PluginProxyTestHarness::PluginDelegateMock::Unregister(
249 uint32 plugin_dispatcher_id) { 249 uint32 plugin_dispatcher_id) {
250 } 250 }
251 251
252 bool PluginProxyTestHarness::PluginDelegateMock::SendToBrowser(
253 IPC::Message* msg) {
254 NOTREACHED();
255 return false;
256 }
257
258 IPC::Sender* PluginProxyTestHarness::PluginDelegateMock::GetBrowserSender() { 252 IPC::Sender* PluginProxyTestHarness::PluginDelegateMock::GetBrowserSender() {
259 return browser_sender_; 253 return browser_sender_;
260 } 254 }
261 255
262 std::string PluginProxyTestHarness::PluginDelegateMock::GetUILanguage() { 256 std::string PluginProxyTestHarness::PluginDelegateMock::GetUILanguage() {
263 return std::string("en-US"); 257 return std::string("en-US");
264 } 258 }
265 259
266 void PluginProxyTestHarness::PluginDelegateMock::PreCacheFont( 260 void PluginProxyTestHarness::PluginDelegateMock::PreCacheFont(
267 const void* logfontw) { 261 const void* logfontw) {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 plugin_thread_.message_loop_proxy()->PostTask(FROM_HERE, 452 plugin_thread_.message_loop_proxy()->PostTask(FROM_HERE,
459 base::Bind(&RunTaskOnRemoteHarness, 453 base::Bind(&RunTaskOnRemoteHarness,
460 task, 454 task,
461 &task_complete)); 455 &task_complete));
462 task_complete.Wait(); 456 task_complete.Wait();
463 } 457 }
464 458
465 459
466 } // namespace proxy 460 } // namespace proxy
467 } // namespace ppapi 461 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698