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

Unified Diff: mojo/public/cpp/utility/tests/mutex_unittest.cc

Issue 1755003002: Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/cpp/utility/tests/run_loop_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/utility/tests/mutex_unittest.cc
diff --git a/mojo/public/cpp/utility/tests/mutex_unittest.cc b/mojo/public/cpp/utility/tests/mutex_unittest.cc
index cfd89353c26ef98c74f1fdcc80c72e2f9c9db59d..1604c8d072e2043158f280b9e691c18e880277ac 100644
--- a/mojo/public/cpp/utility/tests/mutex_unittest.cc
+++ b/mojo/public/cpp/utility/tests/mutex_unittest.cc
@@ -10,6 +10,7 @@
#include <vector>
+#include "base/compiler_specific.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -92,7 +93,7 @@ class Fiddler {
(rand() % 10) * kNanosPerMilli // Nanoseconds.
};
int rv = nanosleep(&req, nullptr);
- MOJO_ALLOW_UNUSED_LOCAL(rv);
+ ALLOW_UNUSED_LOCAL(rv);
assert(rv == 0);
}
@@ -102,7 +103,7 @@ class Fiddler {
Mutex* const mutex_;
int* const shared_value_;
- MOJO_DISALLOW_COPY_AND_ASSIGN(Fiddler);
+ DISALLOW_COPY_AND_ASSIGN(Fiddler);
};
class FiddlerThread : public Thread {
@@ -119,7 +120,7 @@ class FiddlerThread : public Thread {
private:
Fiddler* const fiddler_;
- MOJO_DISALLOW_COPY_AND_ASSIGN(FiddlerThread);
+ DISALLOW_COPY_AND_ASSIGN(FiddlerThread);
};
// This does a stress test (that also checks exclusion).
@@ -180,7 +181,7 @@ class TryThread : public Thread {
Mutex* const mutex_;
bool try_lock_succeeded_;
- MOJO_DISALLOW_COPY_AND_ASSIGN(TryThread);
+ DISALLOW_COPY_AND_ASSIGN(TryThread);
};
TEST(MutexTest, TryLock) {
« no previous file with comments | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/cpp/utility/tests/run_loop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698