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

Unified Diff: third_party/crashpad/crashpad/util/thread/worker_thread_test.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 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/crashpad/crashpad/util/thread/worker_thread_test.cc
diff --git a/third_party/crashpad/crashpad/util/thread/worker_thread_test.cc b/third_party/crashpad/crashpad/util/thread/worker_thread_test.cc
index 044734c84808edff5851738ed9dfc5688be79c84..2070c6adac35e2c6a37fa141eb33361cc05eafa7 100644
--- a/third_party/crashpad/crashpad/util/thread/worker_thread_test.cc
+++ b/third_party/crashpad/crashpad/util/thread/worker_thread_test.cc
@@ -81,7 +81,7 @@ TEST(WorkerThread, StopBeforeDoWork) {
thread.Start(15);
thread.Stop();
- EXPECT_EQ(0, delegate.work_count());
+ EXPECT_EQ(delegate.work_count(), 0);
}
TEST(WorkerThread, Restart) {
@@ -114,13 +114,13 @@ TEST(WorkerThread, DoWorkNow) {
EXPECT_TRUE(thread.is_running());
delegate.WaitForWorkCount();
- EXPECT_EQ(1, delegate.work_count());
+ EXPECT_EQ(delegate.work_count(), 1);
delegate.SetDesiredWorkCount(2);
thread.DoWorkNow();
delegate.WaitForWorkCount();
thread.Stop();
- EXPECT_EQ(2, delegate.work_count());
+ EXPECT_EQ(delegate.work_count(), 2);
EXPECT_GE(100 * kNanosecondsPerSecond, ClockMonotonicNanoseconds() - start);
}
@@ -137,7 +137,7 @@ TEST(WorkerThread, DoWorkNowAtStart) {
thread.DoWorkNow();
delegate.WaitForWorkCount();
- EXPECT_EQ(1, delegate.work_count());
+ EXPECT_EQ(delegate.work_count(), 1);
EXPECT_GE(100 * kNanosecondsPerSecond, ClockMonotonicNanoseconds() - start);
« no previous file with comments | « third_party/crashpad/crashpad/util/thread/thread_log_messages_test.cc ('k') | third_party/crashpad/crashpad/util/util.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698