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

Unified Diff: base/pickle_unittest.cc

Issue 54073005: Disable C4146 warning in pickle_unittest.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 2 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: base/pickle_unittest.cc
===================================================================
--- base/pickle_unittest.cc (revision 232319)
+++ base/pickle_unittest.cc (working copy)
@@ -182,6 +182,10 @@
EXPECT_TRUE(NULL == Pickle::FindNext(header_size, start, end));
}
+#if defined(COMPILER_MSVC)
+#pragma warning(push)
+#pragma warning(disable: 4146)
+#endif
TEST(PickleTest, FindNextOverflow) {
size_t header_size = sizeof(Pickle::Header);
size_t header_size2 = 2 * header_size;
@@ -205,6 +209,9 @@
end = start + header_size;
EXPECT_TRUE(NULL == Pickle::FindNext(header_size2, start, end));
}
+#if defined(COMPILER_MSVC)
+#pragma warning(pop)
+#endif
TEST(PickleTest, GetReadPointerAndAdvance) {
Pickle pickle;
« 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