| 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/common/media_router/media_route.h" |
| 6 #include "chrome/browser/media/router/media_sink.h" | 6 |
| 7 #include "chrome/browser/media/router/media_source_helper.h" | 7 #include "chrome/common/media_router/media_sink.h" |
| 8 #include "chrome/common/media_router/media_source_helper.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 9 | 10 |
| 10 namespace { | 11 namespace { |
| 11 constexpr char kRouteId1[] = | 12 constexpr char kRouteId1[] = |
| 12 "urn:x-org.chromium:media:route:1/cast-sink1/http://foo.com"; | 13 "urn:x-org.chromium:media:route:1/cast-sink1/http://foo.com"; |
| 13 constexpr char kRouteId2[] = | 14 constexpr char kRouteId2[] = |
| 14 "urn:x-org.chromium:media:route:2/cast-sink2/http://foo.com"; | 15 "urn:x-org.chromium:media:route:2/cast-sink2/http://foo.com"; |
| 15 constexpr char kPresentationUrl[] = "http://www.example.com/presentation.html"; | 16 constexpr char kPresentationUrl[] = "http://www.example.com/presentation.html"; |
| 16 } // namespace | 17 } // namespace |
| 17 | 18 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 EXPECT_FALSE(route1.Equals(route5)); | 46 EXPECT_FALSE(route1.Equals(route5)); |
| 46 | 47 |
| 47 // Same as route1 with different incognito. | 48 // Same as route1 with different incognito. |
| 48 MediaRoute route6(kRouteId1, media_source, "sinkId", "Description", true, "", | 49 MediaRoute route6(kRouteId1, media_source, "sinkId", "Description", true, "", |
| 49 false); | 50 false); |
| 50 route6.set_incognito(true); | 51 route6.set_incognito(true); |
| 51 EXPECT_TRUE(route1.Equals(route6)); | 52 EXPECT_TRUE(route1.Equals(route6)); |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace media_router | 55 } // namespace media_router |
| OLD | NEW |