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

Unified Diff: third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc
diff --git a/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc b/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc
index 7a8cbfb8b287a1698e214a72a4b8d2f5d0b4e9d1..49c10aced62059e38dd8f05af747f65176a92786 100644
--- a/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc
+++ b/third_party/protobuf/src/google/protobuf/stubs/type_traits_unittest.cc
@@ -41,7 +41,10 @@
#include <gtest/gtest.h>
typedef int int32;
+// IBM AIX typedefs `int64` in `sys/inttypes.h`, included transitively above.
+#ifndef _AIX
typedef long int64;
+#endif
using std::string;
using std::vector;
@@ -607,7 +610,7 @@ TEST(TypeTraitsTest, TestIsSame) {
}
TEST(TypeTraitsTest, TestConvertible) {
-#if !defined(_MSC_VER) && !(defined(__GNUC__) && __GNUC__ <= 3)
+#if !(defined(__GNUC__) && __GNUC__ <= 3)
EXPECT_TRUE((is_convertible<int, int>::value));
EXPECT_TRUE((is_convertible<int, long>::value));
EXPECT_TRUE((is_convertible<long, int>::value));
« no previous file with comments | « third_party/protobuf/src/google/protobuf/stubs/type_traits.h ('k') | third_party/protobuf/src/google/protobuf/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698