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

Unified Diff: base/pickle_unittest.cc

Issue 2797283002: Fixing std::swap(x, x) in base. (Closed)
Patch Set: Created 3 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: base/pickle_unittest.cc
diff --git a/base/pickle_unittest.cc b/base/pickle_unittest.cc
index e00edd9e03142b4dbc4509abc06df4062614327a..ebef1b9b3702e5399812b486c6ffd9b4388ac3fd 100644
--- a/base/pickle_unittest.cc
+++ b/base/pickle_unittest.cc
@@ -665,4 +665,9 @@ TEST(PickleTest, PickleSizer) {
}
}
+TEST(PickleTest, SelfSwap) {
+ TestingPickle pickle;
+ std::swap(pickle, pickle);
+}
+
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698