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

Unified Diff: test/test_support_android.cc

Issue 2045223003: Update to Chromium //base at Chromium commit 82baa9afc6620c68cb2168f20bb65e77e3e57f0a. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 years, 6 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 | « synchronization/lock.cc ('k') | threading/thread_id_name_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_support_android.cc
diff --git a/test/test_support_android.cc b/test/test_support_android.cc
index 11a08715249b3fe97fe4a1a412df00512cd2c5b7..5a02ef01d1344cb86ad03d9a79876e3805145cc5 100644
--- a/test/test_support_android.cc
+++ b/test/test_support_android.cc
@@ -39,27 +39,21 @@ RunState* g_state = NULL;
// when there are no pending messages.
class Waitable {
public:
- static Waitable* GetInstance() {
- return Singleton<Waitable>::get();
- }
+ static Waitable* GetInstance() { return base::Singleton<Waitable>::get(); }
- // Signals that there are more work to do.
- void Signal() {
- waitable_event_.Signal();
- }
+ // Signals that there are more work to do.
+ void Signal() { waitable_event_.Signal(); }
- // Blocks until more work is scheduled.
- void Block() {
- waitable_event_.Wait();
- }
+ // Blocks until more work is scheduled.
+ void Block() { waitable_event_.Wait(); }
- void Quit() {
- g_state->should_quit = true;
- Signal();
+ void Quit() {
+ g_state->should_quit = true;
+ Signal();
}
private:
- friend struct DefaultSingletonTraits<Waitable>;
+ friend struct base::DefaultSingletonTraits<Waitable>;
Waitable()
: waitable_event_(false, false) {
« no previous file with comments | « synchronization/lock.cc ('k') | threading/thread_id_name_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698