| 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/shared_impl/test_globals.h" | 5 #include "ppapi/shared_impl/test_globals.h" |
| 6 | 6 |
| 7 #include "base/message_loop_proxy.h" |
| 8 |
| 7 namespace ppapi { | 9 namespace ppapi { |
| 8 | 10 |
| 9 TestGlobals::TestGlobals() | 11 TestGlobals::TestGlobals() |
| 10 : ppapi::PpapiGlobals(), | 12 : ppapi::PpapiGlobals(), |
| 11 callback_tracker_(new CallbackTracker) { | 13 callback_tracker_(new CallbackTracker) { |
| 12 } | 14 } |
| 13 | 15 |
| 14 TestGlobals::TestGlobals(PpapiGlobals::ForTest for_test) | 16 TestGlobals::TestGlobals(PpapiGlobals::ForTest for_test) |
| 15 : ppapi::PpapiGlobals(for_test), | 17 : ppapi::PpapiGlobals(for_test), |
| 16 callback_tracker_(new CallbackTracker) { | 18 callback_tracker_(new CallbackTracker) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 | 41 |
| 40 thunk::ResourceCreationAPI* TestGlobals::GetResourceCreationAPI( | 42 thunk::ResourceCreationAPI* TestGlobals::GetResourceCreationAPI( |
| 41 PP_Instance instance) { | 43 PP_Instance instance) { |
| 42 return NULL; | 44 return NULL; |
| 43 } | 45 } |
| 44 | 46 |
| 45 PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) { | 47 PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) { |
| 46 return 0; | 48 return 0; |
| 47 } | 49 } |
| 48 | 50 |
| 51 base::MessageLoopProxy* TestGlobals::GetMainThreadMessageLoop() { |
| 52 if (!message_loop_proxy_.get()) |
| 53 message_loop_proxy_ = base::MessageLoopProxy::current(); |
| 54 return message_loop_proxy_.get(); |
| 55 } |
| 56 |
| 49 std::string TestGlobals::GetCmdLine() { | 57 std::string TestGlobals::GetCmdLine() { |
| 50 return std::string(); | 58 return std::string(); |
| 51 } | 59 } |
| 52 | 60 |
| 53 void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) { | 61 void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) { |
| 54 } | 62 } |
| 55 | 63 |
| 56 base::Lock* TestGlobals::GetProxyLock() { | 64 base::Lock* TestGlobals::GetProxyLock() { |
| 57 return NULL; | 65 return NULL; |
| 58 } | 66 } |
| 59 | 67 |
| 60 void TestGlobals::LogWithSource(PP_Instance instance, | 68 void TestGlobals::LogWithSource(PP_Instance instance, |
| 61 PP_LogLevel_Dev level, | 69 PP_LogLevel_Dev level, |
| 62 const std::string& source, | 70 const std::string& source, |
| 63 const std::string& value) { | 71 const std::string& value) { |
| 64 } | 72 } |
| 65 | 73 |
| 66 void TestGlobals::BroadcastLogWithSource(PP_Module module, | 74 void TestGlobals::BroadcastLogWithSource(PP_Module module, |
| 67 PP_LogLevel_Dev level, | 75 PP_LogLevel_Dev level, |
| 68 const std::string& source, | 76 const std::string& source, |
| 69 const std::string& value) { | 77 const std::string& value) { |
| 70 } | 78 } |
| 71 | 79 |
| 72 } // namespace ppapi | 80 } // namespace ppapi |
| OLD | NEW |