OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/browser_thread_impl.h" | 9 #include "content/browser/browser_thread_impl.h" |
| 10 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" |
10 #include "content/browser/renderer_host/media/media_stream_ui_controller.h" | 11 #include "content/browser/renderer_host/media/media_stream_ui_controller.h" |
11 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" | |
12 #include "content/common/media/media_stream_options.h" | 12 #include "content/common/media/media_stream_options.h" |
13 #include "content/public/common/media_stream_request.h" | 13 #include "content/public/common/media_stream_request.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using testing::_; | 17 using testing::_; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class MediaStreamDeviceUIControllerTest | 21 class MediaStreamDeviceUIControllerTest |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 EXPECT_CALL(*this, DevicesAccepted(label_1, _)); | 161 EXPECT_CALL(*this, DevicesAccepted(label_1, _)); |
162 EXPECT_CALL(*this, DevicesAccepted(label_2, _)); | 162 EXPECT_CALL(*this, DevicesAccepted(label_2, _)); |
163 | 163 |
164 message_loop_->RunUntilIdle(); | 164 message_loop_->RunUntilIdle(); |
165 | 165 |
166 ui_controller_->NotifyUIIndicatorDevicesClosed(label_1); | 166 ui_controller_->NotifyUIIndicatorDevicesClosed(label_1); |
167 ui_controller_->NotifyUIIndicatorDevicesClosed(label_2); | 167 ui_controller_->NotifyUIIndicatorDevicesClosed(label_2); |
168 } | 168 } |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
OLD | NEW |