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 namespace ppapi { | 7 namespace ppapi { |
8 | 8 |
9 TestGlobals::TestGlobals() | 9 TestGlobals::TestGlobals() |
10 : ppapi::PpapiGlobals(), | 10 : ppapi::PpapiGlobals(), |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return 0; | 48 return 0; |
49 } | 49 } |
50 | 50 |
51 std::string TestGlobals::GetCmdLine() { | 51 std::string TestGlobals::GetCmdLine() { |
52 return std::string(); | 52 return std::string(); |
53 } | 53 } |
54 | 54 |
55 void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) { | 55 void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) { |
56 } | 56 } |
57 | 57 |
58 base::Lock* TestGlobals::GetProxyLock() { | |
59 return NULL; | |
60 } | |
61 | |
62 void TestGlobals::LogWithSource(PP_Instance instance, | 58 void TestGlobals::LogWithSource(PP_Instance instance, |
63 PP_LogLevel level, | 59 PP_LogLevel level, |
64 const std::string& source, | 60 const std::string& source, |
65 const std::string& value) { | 61 const std::string& value) { |
66 } | 62 } |
67 | 63 |
68 void TestGlobals::BroadcastLogWithSource(PP_Module module, | 64 void TestGlobals::BroadcastLogWithSource(PP_Module module, |
69 PP_LogLevel level, | 65 PP_LogLevel level, |
70 const std::string& source, | 66 const std::string& source, |
71 const std::string& value) { | 67 const std::string& value) { |
72 } | 68 } |
73 | 69 |
74 MessageLoopShared* TestGlobals::GetCurrentMessageLoop() { | 70 MessageLoopShared* TestGlobals::GetCurrentMessageLoop() { |
75 return NULL; | 71 return NULL; |
76 } | 72 } |
77 | 73 |
78 base::TaskRunner* TestGlobals::GetFileTaskRunner(PP_Instance instance) { | 74 base::TaskRunner* TestGlobals::GetFileTaskRunner(PP_Instance instance) { |
79 return NULL; | 75 return NULL; |
80 } | 76 } |
81 | 77 |
82 bool TestGlobals::IsHostGlobals() const { | 78 bool TestGlobals::IsHostGlobals() const { |
83 // Pretend to be the host-side, for code that expects one or the other. | 79 // Pretend to be the host-side, for code that expects one or the other. |
84 // TODO(dmichael): just make it settable which one we're pretending to be? | 80 // TODO(dmichael): just make it settable which one we're pretending to be? |
85 return true; | 81 return true; |
86 } | 82 } |
87 | 83 |
88 } // namespace ppapi | 84 } // namespace ppapi |
OLD | NEW |