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

Unified Diff: content/common/page_state_serialization_unittest.cc

Issue 202863004: Fix "unreachable code" warnings (MSVC warning 4702) in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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: content/common/page_state_serialization_unittest.cc
===================================================================
--- content/common/page_state_serialization_unittest.cc (revision 257821)
+++ content/common/page_state_serialization_unittest.cc (working copy)
@@ -358,11 +358,9 @@
}
TEST_F(PageStateSerializationTest, DumpExpectedPageStateForBackwardsCompat) {
- // Comment out this return statement to enable this code. Use this code to
- // generate data, based on the current serialization format, for the
- // BackwardsCompat_vXX tests.
- return;
-
+ // Change to #if 1 to enable this code. Use this code to generate data, based
+ // on the current serialization format, for the BackwardsCompat_vXX tests.
+#if 0
ExplodedPageState state;
PopulatePageStateForBackwardsCompatTest(&state);
@@ -388,6 +386,7 @@
}
fclose(fp);
+#endif
}
#if !defined(OS_ANDROID)
« no previous file with comments | « content/common/indexed_db/indexed_db_param_traits.cc ('k') | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698