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

Unified Diff: mojo/public/cpp/environment/tests/async_waiter_unittest.cc

Issue 339403003: Mojo: Make GetDefault{AsyncWaiter,Logger} static methods of Environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: mojo/public/cpp/environment/tests/async_waiter_unittest.cc
diff --git a/mojo/public/cpp/environment/tests/async_waiter_unittest.cc b/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
index 0abeb957f68de8a6d6a2bd7097d343676a414989..0992f8961561843fc5454f5c06c6b337b472c29c 100644
--- a/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
+++ b/mojo/public/cpp/environment/tests/async_waiter_unittest.cc
@@ -4,7 +4,7 @@
#include <string>
-#include "mojo/public/cpp/environment/default_async_waiter.h"
+#include "mojo/public/c/environment/async_waiter.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h"
@@ -42,7 +42,7 @@ class TestAsyncWaitCallback {
MojoAsyncWaitID CallAsyncWait(const Handle& handle,
MojoHandleSignals signals,
TestAsyncWaitCallback* callback) {
- return GetDefaultAsyncWaiter()->AsyncWait(
+ return Environment::GetDefaultAsyncWaiter()->AsyncWait(
handle.value(),
signals,
MOJO_DEADLINE_INDEFINITE,
@@ -51,7 +51,7 @@ MojoAsyncWaitID CallAsyncWait(const Handle& handle,
}
void CallCancelWait(MojoAsyncWaitID wait_id) {
- GetDefaultAsyncWaiter()->CancelWait(wait_id);
+ Environment::GetDefaultAsyncWaiter()->CancelWait(wait_id);
}
class AsyncWaiterTest : public testing::Test {
« no previous file with comments | « mojo/public/cpp/environment/lib/environment.cc ('k') | mojo/public/cpp/environment/tests/logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698