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

Side by Side Diff: mojo/edk/base_edk/platform_message_loop_impl.cc

Issue 1465203003: EDK: Make ConnectionManagerTest not use base::MessageLoop/RunLoop. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mojo/edk/base_edk/platform_message_loop_impl.h" 5 #include "mojo/edk/base_edk/platform_message_loop_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "mojo/edk/base_edk/platform_task_runner_impl.h" 9 #include "mojo/edk/base_edk/platform_task_runner_impl.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void PlatformMessageLoopImpl::RunUntilIdle() { 34 void PlatformMessageLoopImpl::RunUntilIdle() {
35 base_message_loop_.RunUntilIdle(); 35 base_message_loop_.RunUntilIdle();
36 } 36 }
37 37
38 void PlatformMessageLoopImpl::QuitWhenIdle() { 38 void PlatformMessageLoopImpl::QuitWhenIdle() {
39 base_message_loop_.QuitWhenIdle(); 39 base_message_loop_.QuitWhenIdle();
40 } 40 }
41 41
42 void PlatformMessageLoopImpl::QuitNow() {
43 base_message_loop_.QuitNow();
44 }
45
42 const RefPtr<TaskRunner>& PlatformMessageLoopImpl::GetTaskRunner() const { 46 const RefPtr<TaskRunner>& PlatformMessageLoopImpl::GetTaskRunner() const {
43 return task_runner_; 47 return task_runner_;
44 } 48 }
45 49
46 bool PlatformMessageLoopImpl::IsRunningOnCurrentThread() const { 50 bool PlatformMessageLoopImpl::IsRunningOnCurrentThread() const {
47 return base::MessageLoop::current() == &base_message_loop_ && 51 return base::MessageLoop::current() == &base_message_loop_ &&
48 base_message_loop_.is_running(); 52 base_message_loop_.is_running();
49 } 53 }
50 54
51 } // namespace base_edk 55 } // namespace base_edk
OLDNEW
« no previous file with comments | « mojo/edk/base_edk/platform_message_loop_impl.h ('k') | mojo/edk/base_edk/platform_message_loop_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698