1) Equals() only compare IDs and not other fields.
2) Equals() is only used in tests. Calls of EXPECT_TRUE(route.Equals(expected)) could be replaced with EXPECT_EQ(expected, route), which is the preferred style, if operator== is implemented instead.
Tasks:
- Replace Equals() with operator==. Ideally, operator== will compare all MediaRoute fields, as this gives us stronger guarantees in tests
- Replace all (test) usages of Equals() with operator== as describe in #2 above
Comment 1 by mfo...@chromium.org
, Jan 14Owner: mfo...@chromium.org
Status: Started (was: Available)