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

Unified Diff: ppapi/shared_impl/test_globals.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/test_globals.h ('k') | ppapi/shared_impl/thread_aware_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/test_globals.cc
diff --git a/ppapi/shared_impl/test_globals.cc b/ppapi/shared_impl/test_globals.cc
index 2739e26373d2ab7a0540f13195f3cb166d5d95cd..d6409975d57a53289edbf7d290bf14e939ffc1c9 100644
--- a/ppapi/shared_impl/test_globals.cc
+++ b/ppapi/shared_impl/test_globals.cc
@@ -9,33 +9,27 @@ namespace ppapi {
TestGlobals::TestGlobals()
: ppapi::PpapiGlobals(),
resource_tracker_(ResourceTracker::THREAD_SAFE),
- callback_tracker_(new CallbackTracker) {
-}
+ callback_tracker_(new CallbackTracker) {}
TestGlobals::TestGlobals(PpapiGlobals::PerThreadForTest per_thread_for_test)
: ppapi::PpapiGlobals(per_thread_for_test),
resource_tracker_(ResourceTracker::THREAD_SAFE),
- callback_tracker_(new CallbackTracker) {
-}
+ callback_tracker_(new CallbackTracker) {}
-TestGlobals::~TestGlobals() {
-}
+TestGlobals::~TestGlobals() {}
ResourceTracker* TestGlobals::GetResourceTracker() {
return &resource_tracker_;
}
-VarTracker* TestGlobals::GetVarTracker() {
- return &var_tracker_;
-}
+VarTracker* TestGlobals::GetVarTracker() { return &var_tracker_; }
CallbackTracker* TestGlobals::GetCallbackTrackerForInstance(
PP_Instance instance) {
return callback_tracker_.get();
}
-thunk::PPB_Instance_API* TestGlobals::GetInstanceAPI(
- PP_Instance instance) {
+thunk::PPB_Instance_API* TestGlobals::GetInstanceAPI(PP_Instance instance) {
return NULL;
}
@@ -44,36 +38,25 @@ thunk::ResourceCreationAPI* TestGlobals::GetResourceCreationAPI(
return NULL;
}
-PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) {
- return 0;
-}
+PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) { return 0; }
-std::string TestGlobals::GetCmdLine() {
- return std::string();
-}
+std::string TestGlobals::GetCmdLine() { return std::string(); }
-void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) {
-}
+void TestGlobals::PreCacheFontForFlash(const void* /* logfontw */) {}
void TestGlobals::LogWithSource(PP_Instance instance,
PP_LogLevel level,
const std::string& source,
- const std::string& value) {
-}
+ const std::string& value) {}
void TestGlobals::BroadcastLogWithSource(PP_Module module,
PP_LogLevel level,
const std::string& source,
- const std::string& value) {
-}
+ const std::string& value) {}
-MessageLoopShared* TestGlobals::GetCurrentMessageLoop() {
- return NULL;
-}
+MessageLoopShared* TestGlobals::GetCurrentMessageLoop() { return NULL; }
-base::TaskRunner* TestGlobals::GetFileTaskRunner() {
- return NULL;
-}
+base::TaskRunner* TestGlobals::GetFileTaskRunner() { return NULL; }
bool TestGlobals::IsHostGlobals() const {
// Pretend to be the host-side, for code that expects one or the other.
« no previous file with comments | « ppapi/shared_impl/test_globals.h ('k') | ppapi/shared_impl/thread_aware_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698