OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/capture/audio_mirroring_manager.h" | 5 #include "content/browser/media/capture/audio_mirroring_manager.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
16 #include "media/audio/audio_parameters.h" | 16 #include "media/base/audio_parameters.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using media::AudioOutputStream; | 20 using media::AudioOutputStream; |
21 using media::AudioParameters; | 21 using media::AudioParameters; |
22 using testing::_; | 22 using testing::_; |
23 using testing::Invoke; | 23 using testing::Invoke; |
24 using testing::NotNull; | 24 using testing::NotNull; |
25 using testing::Ref; | 25 using testing::Ref; |
26 using testing::Return; | 26 using testing::Return; |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 EXPECT_EQ(0, CountStreamsDivertedTo(destination)); | 546 EXPECT_EQ(0, CountStreamsDivertedTo(destination)); |
547 EXPECT_EQ(2, another_destination->query_count()); | 547 EXPECT_EQ(2, another_destination->query_count()); |
548 EXPECT_EQ(0, CountStreamsDivertedTo(another_destination)); | 548 EXPECT_EQ(0, CountStreamsDivertedTo(another_destination)); |
549 EXPECT_EQ(2, yet_another_destination->query_count()); | 549 EXPECT_EQ(2, yet_another_destination->query_count()); |
550 EXPECT_EQ(0, CountStreamsDivertedTo(yet_another_destination)); | 550 EXPECT_EQ(0, CountStreamsDivertedTo(yet_another_destination)); |
551 | 551 |
552 ExpectNoLongerManagingAnything(); | 552 ExpectNoLongerManagingAnything(); |
553 } | 553 } |
554 | 554 |
555 } // namespace content | 555 } // namespace content |
OLD | NEW |