Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: chrome/browser/media/webrtc/native_desktop_media_list_unittest.cc

Issue 2495453002: [Chromoting] Remove screen_capturer.h & desktop_capturer.h (Closed)
Patch Set: Include ipc_desktop_environment_unittest.cc Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/webrtc/native_desktop_media_list.h" 5 #include "chrome/browser/media/webrtc/native_desktop_media_list.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/synchronization/lock.h" 18 #include "base/synchronization/lock.h"
19 #include "chrome/browser/media/webrtc/desktop_media_list_observer.h" 19 #include "chrome/browser/media/webrtc/desktop_media_list_observer.h"
20 #include "content/public/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
23 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 24 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
24 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
25 #include "third_party/webrtc/modules/desktop_capture/window_capturer.h"
26 #include "ui/aura/window.h" 25 #include "ui/aura/window.h"
27 #include "ui/aura/window_tree_host.h" 26 #include "ui/aura/window_tree_host.h"
28 #include "ui/views/test/views_test_base.h" 27 #include "ui/views/test/views_test_base.h"
29 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" 28 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
30 #include "ui/views/widget/widget.h" 29 #include "ui/views/widget/widget.h"
31 30
32 using content::DesktopMediaID; 31 using content::DesktopMediaID;
33 using testing::_; 32 using testing::_;
34 using testing::DoAll; 33 using testing::DoAll;
35 34
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 502
504 EXPECT_CALL(observer_, OnSourceMoved(model_.get(), 2, 1)) 503 EXPECT_CALL(observer_, OnSourceMoved(model_.get(), 2, 1))
505 .WillOnce(DoAll(CheckListSize(model_.get(), kDefaultWindowCount + 1), 504 .WillOnce(DoAll(CheckListSize(model_.get(), kDefaultWindowCount + 1),
506 QuitMessageLoop(message_loop()))); 505 QuitMessageLoop(message_loop())));
507 506
508 std::swap(window_list_[0], window_list_[1]); 507 std::swap(window_list_[0], window_list_[1]);
509 window_capturer_->SetWindowList(window_list_); 508 window_capturer_->SetWindowList(window_list_);
510 509
511 base::RunLoop().Run(); 510 base::RunLoop().Run();
512 } 511 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/native_desktop_media_list.cc ('k') | content/browser/media/capture/desktop_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698