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

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

Issue 354143003: Unbreak Win64 build (hopefully). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-ostreams.cc
diff --git a/test/cctest/test-ostreams.cc b/test/cctest/test-ostreams.cc
index 3d9e2e7f1b52e976f92ff4a499c8fc18bc05aed5..c83f96d4665eb67e1fbdc8bb9c201d3283b86ed1 100644
--- a/test/cctest/test-ostreams.cc
+++ b/test/cctest/test-ostreams.cc
@@ -14,7 +14,8 @@ using namespace v8::internal;
TEST(OStringStreamConstructor) {
OStringStream oss;
- CHECK_EQ(0, oss.size());
+ const size_t expected_size = 0;
+ CHECK(expected_size == oss.size());
CHECK_GT(oss.capacity(), 0);
CHECK_NE(NULL, oss.data());
CHECK_EQ("", oss.c_str());
@@ -42,7 +43,7 @@ TEST(OStringStreamGrow) {
TEST_STRING TEST_STRING TEST_STRING TEST_STRING TEST_STRING
TEST_STRING TEST_STRING TEST_STRING TEST_STRING TEST_STRING;
const size_t expected_len = len * repeat;
- CHECK_EQ(static_cast<int>(expected_len), oss.size());
+ CHECK(expected_len == oss.size());
CHECK_GT(oss.capacity(), 0);
CHECK_EQ(0, strncmp(expected, oss.data(), expected_len));
CHECK_EQ(expected, oss.c_str());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698