| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "chrome/browser/media/router/mock_media_router.h" | 6 #include "chrome/browser/media/router/mock_media_router.h" |
| 7 #include "chrome/browser/media/router/test_helper.h" | 7 #include "chrome/browser/media/router/test_helper.h" |
| 8 #include "content/public/browser/presentation_session.h" | 8 #include "content/public/common/presentation_session.h" |
| 9 #include "content/public/test/test_browser_thread_bundle.h" | 9 #include "content/public/test/test_browser_thread_bundle.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using testing::_; | 13 using testing::_; |
| 14 using testing::SaveArg; | 14 using testing::SaveArg; |
| 15 | 15 |
| 16 namespace media_router { | 16 namespace media_router { |
| 17 | 17 |
| 18 // MockMediaRouter inherits from MediaRouterBase but overrides some of its | 18 // MockMediaRouter inherits from MediaRouterBase but overrides some of its |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 ASSERT_EQ(current_routes.size(), 2u); | 131 ASSERT_EQ(current_routes.size(), 2u); |
| 132 EXPECT_TRUE(current_routes[0].Equals(route1)); | 132 EXPECT_TRUE(current_routes[0].Equals(route1)); |
| 133 EXPECT_TRUE(current_routes[1].Equals(route2)); | 133 EXPECT_TRUE(current_routes[1].Equals(route2)); |
| 134 | 134 |
| 135 routes_observer_->OnRoutesUpdated(std::vector<MediaRoute>(), | 135 routes_observer_->OnRoutesUpdated(std::vector<MediaRoute>(), |
| 136 std::vector<MediaRoute::Id>()); | 136 std::vector<MediaRoute::Id>()); |
| 137 EXPECT_TRUE(router_.GetCurrentRoutes().empty()); | 137 EXPECT_TRUE(router_.GetCurrentRoutes().empty()); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace media_router | 140 } // namespace media_router |
| OLD | NEW |