| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/containers/hash_tables.h" | 6 #include "base/containers/hash_tables.h" |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/memory/scoped_vector.h" | |
| 9 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 10 #include "chrome/browser/media/router/media_sinks_observer.h" | 9 #include "chrome/browser/media/router/media_sinks_observer.h" |
| 11 #include "chrome/browser/media/router/media_source_helper.h" | 10 #include "chrome/browser/media/router/media_source_helper.h" |
| 12 #include "chrome/browser/media/router/mock_media_router.h" | 11 #include "chrome/browser/media/router/mock_media_router.h" |
| 13 #include "chrome/browser/ui/webui/media_router/query_result_manager.h" | 12 #include "chrome/browser/ui/webui/media_router/query_result_manager.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 15 |
| 17 using testing::ContainerEq; | 16 using testing::ContainerEq; |
| 18 using testing::Eq; | 17 using testing::Eq; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 EXPECT_CALL(mock_observer_, | 218 EXPECT_CALL(mock_observer_, |
| 220 OnResultsUpdated(VectorEquals(expected_sinks))).Times(1); | 219 OnResultsUpdated(VectorEquals(expected_sinks))).Times(1); |
| 221 EXPECT_CALL(mock_router_, UnregisterMediaSinksObserver(_)).Times(1); | 220 EXPECT_CALL(mock_router_, UnregisterMediaSinksObserver(_)).Times(1); |
| 222 query_result_manager_.StopSinksQuery(MediaCastMode::TAB_MIRROR); | 221 query_result_manager_.StopSinksQuery(MediaCastMode::TAB_MIRROR); |
| 223 | 222 |
| 224 // Remaining observers: DEFAULT observer, which will be removed on destruction | 223 // Remaining observers: DEFAULT observer, which will be removed on destruction |
| 225 EXPECT_CALL(mock_router_, UnregisterMediaSinksObserver(_)).Times(1); | 224 EXPECT_CALL(mock_router_, UnregisterMediaSinksObserver(_)).Times(1); |
| 226 } | 225 } |
| 227 | 226 |
| 228 } // namespace media_router | 227 } // namespace media_router |
| OLD | NEW |