| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/media/webrtc/tab_desktop_media_list.h" | 5 #include "chrome/browser/media/webrtc/tab_desktop_media_list.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "chrome/browser/media/webrtc/desktop_media_list_observer.h" | 15 #include "chrome/browser/media/webrtc/desktop_media_list_observer.h" |
| 15 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
| 16 #include "chrome/browser/ui/browser_list.h" | 17 #include "chrome/browser/ui/browser_list.h" |
| 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 18 #include "chrome/test/base/scoped_testing_local_state.h" | 19 #include "chrome/test/base/scoped_testing_local_state.h" |
| 19 #include "chrome/test/base/test_browser_window.h" | 20 #include "chrome/test/base/test_browser_window.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 favicon_info.image = CreateGrayscaleImage(gfx::Size(10, 10), 100); | 351 favicon_info.image = CreateGrayscaleImage(gfx::Size(10, 10), 100); |
| 351 contents->GetController().GetTransientEntry()->GetFavicon() = favicon_info; | 352 contents->GetController().GetTransientEntry()->GetFavicon() = favicon_info; |
| 352 | 353 |
| 353 EXPECT_CALL(observer_, OnSourceThumbnailChanged(list_.get(), 0)) | 354 EXPECT_CALL(observer_, OnSourceThumbnailChanged(list_.get(), 0)) |
| 354 .WillOnce(QuitMessageLoop()); | 355 .WillOnce(QuitMessageLoop()); |
| 355 | 356 |
| 356 base::RunLoop().Run(); | 357 base::RunLoop().Run(); |
| 357 | 358 |
| 358 list_.reset(); | 359 list_.reset(); |
| 359 } | 360 } |
| OLD | NEW |