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

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

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | remoting/client/client_context.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) 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/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 plugin_thread_.message_loop_proxy()->PostTask( 544 plugin_thread_.message_loop_proxy()->PostTask(
545 FROM_HERE, 545 FROM_HERE,
546 base::Bind(&SetUpRemoteHarness, 546 base::Bind(&SetUpRemoteHarness,
547 remote_harness_, 547 remote_harness_,
548 handle, 548 handle,
549 io_thread_.message_loop_proxy(), 549 io_thread_.message_loop_proxy(),
550 &shutdown_event_, 550 &shutdown_event_,
551 &remote_harness_set_up)); 551 &remote_harness_set_up));
552 remote_harness_set_up.Wait(); 552 remote_harness_set_up.Wait();
553 local_harness_->SetUpHarnessWithChannel(handle, 553 local_harness_->SetUpHarnessWithChannel(handle,
554 io_thread_.message_loop_proxy(), 554 io_thread_.message_loop_proxy().get(),
555 &shutdown_event_, 555 &shutdown_event_,
556 true); // is_client 556 true); // is_client
557 } 557 }
558 558
559 void TwoWayTest::TearDown() { 559 void TwoWayTest::TearDown() {
560 base::WaitableEvent remote_harness_torn_down(true, false); 560 base::WaitableEvent remote_harness_torn_down(true, false);
561 plugin_thread_.message_loop_proxy()->PostTask( 561 plugin_thread_.message_loop_proxy()->PostTask(
562 FROM_HERE, 562 FROM_HERE,
563 base::Bind(&TearDownRemoteHarness, 563 base::Bind(&TearDownRemoteHarness,
564 remote_harness_, 564 remote_harness_,
(...skipping 10 matching lines...) Expand all
575 plugin_thread_.message_loop_proxy()->PostTask(FROM_HERE, 575 plugin_thread_.message_loop_proxy()->PostTask(FROM_HERE,
576 base::Bind(&RunTaskOnRemoteHarness, 576 base::Bind(&RunTaskOnRemoteHarness,
577 task, 577 task,
578 &task_complete)); 578 &task_complete));
579 task_complete.Wait(); 579 task_complete.Wait();
580 } 580 }
581 581
582 582
583 } // namespace proxy 583 } // namespace proxy
584 } // namespace ppapi 584 } // namespace ppapi
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | remoting/client/client_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698