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

Unified Diff: webrtc/stats/rtcstats_unittest.cc

Issue 2517163002: RTCStats operator== bugfix (Closed)
Patch Set: Created 4 years, 1 month 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/stats/rtcstats.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/rtcstats_unittest.cc
diff --git a/webrtc/stats/rtcstats_unittest.cc b/webrtc/stats/rtcstats_unittest.cc
index f24519467cacb1fd0981e7ea22e82f5f8400d7ed..78543557442823f7d50fde50203417d3577b5a36 100644
--- a/webrtc/stats/rtcstats_unittest.cc
+++ b/webrtc/stats/rtcstats_unittest.cc
@@ -172,6 +172,12 @@ TEST(RTCStatsTest, EqualityOperator) {
RTCChildStats child("childId", 42);
RTCGrandChildStats grandchild("grandchildId", 42);
EXPECT_NE(child, grandchild);
+
+ RTCChildStats stats_with_defined_member("leId", 0);
+ stats_with_defined_member.child_int = 0;
+ RTCChildStats stats_with_undefined_member("leId", 0);
+ EXPECT_NE(stats_with_defined_member, stats_with_undefined_member);
+ EXPECT_NE(stats_with_undefined_member, stats_with_defined_member);
}
TEST(RTCStatsTest, RTCStatsGrandChild) {
« no previous file with comments | « webrtc/api/stats/rtcstats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698