| 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 "chrome/browser/media/desktop_media_list_ash.h" | 5 #include "chrome/browser/media/desktop_media_list_ash.h" |
| 6 | 6 |
| 7 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "build/build_config.h" |
| 12 #include "chrome/browser/media/desktop_media_list_observer.h" | 14 #include "chrome/browser/media/desktop_media_list_observer.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 16 | 18 |
| 17 int kThumbnailSize = 100; | 19 int kThumbnailSize = 100; |
| 18 | 20 |
| 19 using testing::AtLeast; | 21 using testing::AtLeast; |
| 20 using testing::DoDefault; | 22 using testing::DoDefault; |
| 21 | 23 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 .WillOnce(QuitMessageLoop()) | 117 .WillOnce(QuitMessageLoop()) |
| 116 .WillRepeatedly(DoDefault()); | 118 .WillRepeatedly(DoDefault()); |
| 117 EXPECT_CALL(observer_, OnSourceRemoved(0)) | 119 EXPECT_CALL(observer_, OnSourceRemoved(0)) |
| 118 .WillOnce(QuitMessageLoop()); | 120 .WillOnce(QuitMessageLoop()); |
| 119 | 121 |
| 120 list_->StartUpdating(&observer_); | 122 list_->StartUpdating(&observer_); |
| 121 base::MessageLoop::current()->Run(); | 123 base::MessageLoop::current()->Run(); |
| 122 window.reset(); | 124 window.reset(); |
| 123 base::MessageLoop::current()->Run(); | 125 base::MessageLoop::current()->Run(); |
| 124 } | 126 } |
| OLD | NEW |