| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 | 281 |
| 282 IPC::Sender* PluginProxyTestHarness::PluginDelegateMock::GetBrowserSender() { | 282 IPC::Sender* PluginProxyTestHarness::PluginDelegateMock::GetBrowserSender() { |
| 283 return browser_sender_; | 283 return browser_sender_; |
| 284 } | 284 } |
| 285 | 285 |
| 286 std::string PluginProxyTestHarness::PluginDelegateMock::GetUILanguage() { | 286 std::string PluginProxyTestHarness::PluginDelegateMock::GetUILanguage() { |
| 287 return std::string("en-US"); | 287 return std::string("en-US"); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void PluginProxyTestHarness::PluginDelegateMock::PreCacheFont( | 290 void PluginProxyTestHarness::PluginDelegateMock::PreCacheFontForFlash( |
| 291 const void* logfontw) { | 291 const void* logfontw) { |
| 292 } | 292 } |
| 293 | 293 |
| 294 void PluginProxyTestHarness::PluginDelegateMock::SetActiveURL( | 294 void PluginProxyTestHarness::PluginDelegateMock::SetActiveURL( |
| 295 const std::string& url) { | 295 const std::string& url) { |
| 296 } | 296 } |
| 297 | 297 |
| 298 PP_Resource PluginProxyTestHarness::PluginDelegateMock::CreateBrowserFont( | 298 PP_Resource PluginProxyTestHarness::PluginDelegateMock::CreateBrowserFont( |
| 299 Connection connection, | 299 Connection connection, |
| 300 PP_Instance instance, | 300 PP_Instance instance, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 void TwoWayTest::PostTaskOnRemoteHarness(const base::Closure& task) { | 582 void TwoWayTest::PostTaskOnRemoteHarness(const base::Closure& task) { |
| 583 base::WaitableEvent task_complete(true, false); | 583 base::WaitableEvent task_complete(true, false); |
| 584 plugin_thread_.task_runner()->PostTask( | 584 plugin_thread_.task_runner()->PostTask( |
| 585 FROM_HERE, base::Bind(&RunTaskOnRemoteHarness, task, &task_complete)); | 585 FROM_HERE, base::Bind(&RunTaskOnRemoteHarness, task, &task_complete)); |
| 586 task_complete.Wait(); | 586 task_complete.Wait(); |
| 587 } | 587 } |
| 588 | 588 |
| 589 | 589 |
| 590 } // namespace proxy | 590 } // namespace proxy |
| 591 } // namespace ppapi | 591 } // namespace ppapi |
| OLD | NEW |