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

Unified Diff: dbus/message_unittest.cc

Issue 7453041: Fix linux build break (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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: dbus/message_unittest.cc
diff --git a/dbus/message_unittest.cc b/dbus/message_unittest.cc
index e7aaba18d9669de044238366da98378ef140aa94..54a14e9dd6131bed94ff0189075628a32a2708e7 100644
--- a/dbus/message_unittest.cc
+++ b/dbus/message_unittest.cc
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/logging.h"
#include "dbus/message.h"
+
+#include "base/basictypes.h"
+#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
// Test that a byte can be properly written and read. We only have this
@@ -252,7 +254,7 @@ TEST(MessageTest, CreateComplexMessageAndReadIt) {
dbus::MessageWriter dict_entry_writer(&message);
dict_array_writer.OpenDictEntry(&dict_entry_writer);
dict_entry_writer.AppendString("foo");
- dict_entry_writer.AppendInt64(1234567890123456789);
+ dict_entry_writer.AppendInt64(GG_INT64_C(1234567890123456789));
dict_array_writer.CloseContainer(&dict_entry_writer);
}
variant_writer.CloseContainer(&dict_array_writer);
@@ -322,7 +324,7 @@ TEST(MessageTest, CreateComplexMessageAndReadIt) {
EXPECT_EQ("foo", string_value);
int64 int64_value = 0;
ASSERT_TRUE(dict_entry_reader.PopInt64(&int64_value));
- EXPECT_EQ(1234567890123456789, int64_value);
+ EXPECT_EQ(GG_INT64_C(1234567890123456789), int64_value);
}
ASSERT_FALSE(dict_array_reader.HasMoreData());
}
« 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