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

Unified Diff: test/cctest/test-semaphore.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 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
« no previous file with comments | « test/cctest/test-regexp.cc ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-semaphore.cc
diff --git a/test/cctest/test-semaphore.cc b/test/cctest/test-semaphore.cc
index 860531132f59aa7533b83cd1c8333ed345f90797..3a8a3a1b8711306a66acb9621677646b0e086e12 100644
--- a/test/cctest/test-semaphore.cc
+++ b/test/cctest/test-semaphore.cc
@@ -47,7 +47,7 @@ class WaitAndSignalThread V8_FINAL : public v8::base::Thread {
semaphore_->Wait();
bool result =
semaphore_->WaitFor(v8::base::TimeDelta::FromMicroseconds(1));
- ASSERT(!result);
+ DCHECK(!result);
USE(result);
semaphore_->Signal();
}
@@ -75,7 +75,7 @@ TEST(WaitAndSignal) {
semaphore.Wait();
bool result = semaphore.WaitFor(v8::base::TimeDelta::FromMicroseconds(1));
- ASSERT(!result);
+ DCHECK(!result);
USE(result);
}
@@ -138,7 +138,7 @@ class ConsumerThread V8_FINAL : public v8::base::Thread {
virtual void Run() V8_OVERRIDE {
for (int n = 0; n < kDataSize; ++n) {
used_space.Wait();
- ASSERT_EQ(static_cast<int>(alphabet[n % kAlphabetSize]),
+ DCHECK_EQ(static_cast<int>(alphabet[n % kAlphabetSize]),
static_cast<int>(buffer[n % kBufferSize]));
free_space.Signal();
}
« no previous file with comments | « test/cctest/test-regexp.cc ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698