| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |