| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/media/router/media_route.h" | 5 #include "chrome/browser/media/router/media_route.h" |
| 6 #include "chrome/browser/media/router/media_sink.h" | 6 #include "chrome/browser/media/router/media_sink.h" |
| 7 #include "chrome/browser/media/router/media_source_helper.h" | 7 #include "chrome/browser/media/router/media_source_helper.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Same as route1 with different is_local. | 34 // Same as route1 with different is_local. |
| 35 MediaRoute route4(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", | 35 MediaRoute route4(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", |
| 36 "Description", true, "", false); | 36 "Description", true, "", false); |
| 37 EXPECT_TRUE(route1.Equals(route4)); | 37 EXPECT_TRUE(route1.Equals(route4)); |
| 38 | 38 |
| 39 // The ID is different from route1's. | 39 // The ID is different from route1's. |
| 40 MediaRoute route5(kRouteId2, MediaSourceForCastApp("DialApp"), "sinkId", | 40 MediaRoute route5(kRouteId2, MediaSourceForCastApp("DialApp"), "sinkId", |
| 41 "Description", false, "", false); | 41 "Description", false, "", false); |
| 42 EXPECT_FALSE(route1.Equals(route5)); | 42 EXPECT_FALSE(route1.Equals(route5)); |
| 43 | 43 |
| 44 // Same as route1 with different off_the_record. | 44 // Same as route1 with different incognito. |
| 45 MediaRoute route6(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", | 45 MediaRoute route6(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", |
| 46 "Description", true, "", false); | 46 "Description", true, "", false); |
| 47 route6.set_off_the_record(true); | 47 route6.set_incognito(true); |
| 48 EXPECT_TRUE(route1.Equals(route6)); | 48 EXPECT_TRUE(route1.Equals(route6)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace media_router | 51 } // namespace media_router |
| OLD | NEW |