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.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "content/browser/renderer_host/render_view_host_delegate.h" | 8 #include "content/browser/renderer_host/render_view_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/rect.h" |
14 | 14 |
15 using testing::_; | 15 using testing::_; |
16 using testing::SaveArg; | 16 using testing::SaveArg; |
17 | 17 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 base::Unretained(&stop_handler))); | 210 base::Unretained(&stop_handler))); |
211 message_loop_.RunUntilIdle(); | 211 message_loop_.RunUntilIdle(); |
212 | 212 |
213 ASSERT_FALSE(stop_callback.is_null()); | 213 ASSERT_FALSE(stop_callback.is_null()); |
214 EXPECT_CALL(stop_handler, OnStop()); | 214 EXPECT_CALL(stop_handler, OnStop()); |
215 stop_callback.Run(); | 215 stop_callback.Run(); |
216 message_loop_.RunUntilIdle(); | 216 message_loop_.RunUntilIdle(); |
217 } | 217 } |
218 | 218 |
219 } // content | 219 } // content |
OLD | NEW |