OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/renderer_host/media/media_stream_ui_proxy.h" | 5 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "content/browser/frame_host/render_frame_host_delegate.h" | 8 #include "content/browser/frame_host/render_frame_host_delegate.h" |
9 #include "content/public/common/renderer_preferences.h" | 9 #include "content/public/common/renderer_preferences.h" |
10 #include "content/public/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.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 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
14 | 14 |
15 using testing::_; | 15 using testing::_; |
16 using testing::Return; | 16 using testing::Return; |
17 using testing::SaveArg; | 17 using testing::SaveArg; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 namespace { | 20 namespace { |
21 | 21 |
22 class MockRenderFrameHostDelegate : public RenderFrameHostDelegate { | 22 class MockRenderFrameHostDelegate : public RenderFrameHostDelegate { |
23 public: | 23 public: |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 0, | 256 0, |
257 0, | 257 0, |
258 base::Bind(&MockResponseCallback::OnCheckResponse, | 258 base::Bind(&MockResponseCallback::OnCheckResponse, |
259 base::Unretained(&response_callback_))); | 259 base::Unretained(&response_callback_))); |
260 EXPECT_CALL(delegate_, CheckMediaAccessPermission(_, _)); | 260 EXPECT_CALL(delegate_, CheckMediaAccessPermission(_, _)); |
261 EXPECT_CALL(response_callback_, OnCheckResponse(_)); | 261 EXPECT_CALL(response_callback_, OnCheckResponse(_)); |
262 message_loop_.RunUntilIdle(); | 262 message_loop_.RunUntilIdle(); |
263 } | 263 } |
264 | 264 |
265 } // content | 265 } // content |
OLD | NEW |