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

Unified Diff: test/cctest/test-parsing.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-mark-compact.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index b82b7c44ac184ac143357001135ab96e3cc466d9..74ece30680ad3927d7eab8a1a4904f96d5c3e291 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -672,7 +672,7 @@ TEST(Utf8CharacterStream) {
i,
unibrow::Utf16::kNoPreviousCharacter);
}
- ASSERT(cursor == kAllUtf8CharsSizeU);
+ DCHECK(cursor == kAllUtf8CharsSizeU);
i::Utf8ToUtf16CharacterStream stream(reinterpret_cast<const i::byte*>(buffer),
kAllUtf8CharsSizeU);
@@ -761,8 +761,8 @@ TEST(StreamScanner) {
i::Token::EOS,
i::Token::ILLEGAL
};
- ASSERT_EQ('{', str2[19]);
- ASSERT_EQ('}', str2[37]);
+ DCHECK_EQ('{', str2[19]);
+ DCHECK_EQ('}', str2[37]);
TestStreamScanner(&stream2, expectations2, 20, 37);
const char* str3 = "{}}}}";
@@ -2894,8 +2894,8 @@ TEST(SerializationOfMaybeAssignmentFlag) {
new (&zone) i::Scope(NULL, i::GLOBAL_SCOPE, &avf, &zone);
global_scope->Initialize();
i::Scope* s = i::Scope::DeserializeScopeChain(context, global_scope, &zone);
- ASSERT(s != global_scope);
- ASSERT(name != NULL);
+ DCHECK(s != global_scope);
+ DCHECK(name != NULL);
// Get result from h's function context (that is f's context)
i::Variable* var = s->Lookup(name);
@@ -2941,7 +2941,7 @@ TEST(IfArgumentsArrayAccessedThenParametersMaybeAssigned) {
new (&zone) i::Scope(NULL, i::GLOBAL_SCOPE, &avf, &zone);
global_scope->Initialize();
i::Scope* s = i::Scope::DeserializeScopeChain(context, global_scope, &zone);
- ASSERT(s != global_scope);
+ DCHECK(s != global_scope);
const i::AstRawString* name_x = avf.GetOneByteString("x");
// Get result from f's function context (that is g's outer context)
@@ -2988,7 +2988,7 @@ TEST(ExportsMaybeAssigned) {
new (&zone) i::Scope(NULL, i::GLOBAL_SCOPE, &avf, &zone);
global_scope->Initialize();
i::Scope* s = i::Scope::DeserializeScopeChain(context, global_scope, &zone);
- ASSERT(s != global_scope);
+ DCHECK(s != global_scope);
const i::AstRawString* name_x = avf.GetOneByteString("x");
const i::AstRawString* name_f = avf.GetOneByteString("f");
const i::AstRawString* name_y = avf.GetOneByteString("y");
« no previous file with comments | « test/cctest/test-mark-compact.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698