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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc

Issue 1296453004: Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cherry-pick GL_APIENTRY addition back in Created 5 years, 4 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: third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc b/third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc
index 0d1f3d92d0ea4f25ab55b465d4f47b7d8e30f43f..e9735b1aa5396b430103443c1fa5fc44c3b7b2c9 100644
--- a/third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc
+++ b/third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc
@@ -16,6 +16,7 @@
#include "base/test/test_timeouts.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "mojo/edk/embedder/test_embedder.h"
+#include "mojo/edk/system/mutex.h"
#include "mojo/edk/system/test_utils.h"
#include "mojo/edk/test/multiprocess_test_helper.h"
#include "mojo/edk/test/scoped_ipc_support.h"
@@ -180,7 +181,7 @@ class TestAsyncWaiter {
TestAsyncWaiter() : event_(true, false), wait_result_(MOJO_RESULT_UNKNOWN) {}
void Awake(MojoResult result) {
- base::AutoLock l(wait_result_lock_);
+ system::MutexLocker l(&wait_result_mutex_);
wait_result_ = result;
event_.Signal();
}
@@ -188,15 +189,15 @@ class TestAsyncWaiter {
bool TryWait() { return event_.TimedWait(TestTimeouts::action_timeout()); }
MojoResult wait_result() const {
- base::AutoLock l(wait_result_lock_);
+ system::MutexLocker l(&wait_result_mutex_);
return wait_result_;
}
private:
base::WaitableEvent event_;
- mutable base::Lock wait_result_lock_;
- MojoResult wait_result_;
+ mutable system::Mutex wait_result_mutex_;
+ MojoResult wait_result_ MOJO_GUARDED_BY(wait_result_mutex_);
MOJO_DISALLOW_COPY_AND_ASSIGN(TestAsyncWaiter);
};

Powered by Google App Engine
This is Rietveld 408576698