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: webrtc/api/rtcerror_unittest.cc

Issue 2709573003: Move rtc_api_unittests into rtc_unittests. (Closed)
Patch Set: Fix Windows-specific issue. Created 3 years, 10 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 | « webrtc/api/rtcerror.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcerror_unittest.cc
diff --git a/webrtc/api/rtcerror_unittest.cc b/webrtc/api/rtcerror_unittest.cc
index 32b03add075187eea2353d3dac2053a6dbb998b9..486a029fbe0c511cad2db0f4988e4e954343d26a 100644
--- a/webrtc/api/rtcerror_unittest.cc
+++ b/webrtc/api/rtcerror_unittest.cc
@@ -22,8 +22,12 @@ struct MoveOnlyInt {
MoveOnlyInt() {}
explicit MoveOnlyInt(int value) : value(value) {}
MoveOnlyInt(const MoveOnlyInt& other) = delete;
- MoveOnlyInt(MoveOnlyInt&& other) = default;
- MoveOnlyInt& operator=(MoveOnlyInt&& other) = default;
+ MoveOnlyInt& operator=(const MoveOnlyInt& other) = delete;
+ MoveOnlyInt(MoveOnlyInt&& other) : value(other.value) {}
+ MoveOnlyInt& operator=(MoveOnlyInt&& other) {
+ value = other.value;
+ return *this;
+ }
int value = kDefaultMoveOnlyIntValue;
};
@@ -34,8 +38,12 @@ struct MoveOnlyInt2 {
MoveOnlyInt2() {}
explicit MoveOnlyInt2(int value) : value(value) {}
MoveOnlyInt2(const MoveOnlyInt2& other) = delete;
- MoveOnlyInt2(MoveOnlyInt2&& other) = default;
- MoveOnlyInt2& operator=(MoveOnlyInt2&& other) = default;
+ MoveOnlyInt2& operator=(const MoveOnlyInt2& other) = delete;
+ MoveOnlyInt2(MoveOnlyInt2&& other) : value(other.value) {}
+ MoveOnlyInt2& operator=(MoveOnlyInt2&& other) {
+ value = other.value;
+ return *this;
+ }
explicit MoveOnlyInt2(MoveOnlyInt&& other) : value(other.value) {}
MoveOnlyInt2& operator=(MoveOnlyInt&& other) {
« no previous file with comments | « webrtc/api/rtcerror.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698