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