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

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

Issue 134633004: Roll libjingle+webrtc to r5397. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | content/browser/renderer_host/media/desktop_capture_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/native_desktop_media_list.h" 5 #include "chrome/browser/media/native_desktop_media_list.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "chrome/browser/media/desktop_media_list_observer.h" 10 #include "chrome/browser/media/desktop_media_list_observer.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 new webrtc::BasicDesktopFrame(webrtc::DesktopSize(10, 10)); 44 new webrtc::BasicDesktopFrame(webrtc::DesktopSize(10, 10));
45 memset(frame->data(), 0, frame->stride() * frame->size().height()); 45 memset(frame->data(), 0, frame->stride() * frame->size().height());
46 callback_->OnCaptureCompleted(frame); 46 callback_->OnCaptureCompleted(frame);
47 } 47 }
48 48
49 virtual void SetMouseShapeObserver( 49 virtual void SetMouseShapeObserver(
50 MouseShapeObserver* mouse_shape_observer) OVERRIDE { 50 MouseShapeObserver* mouse_shape_observer) OVERRIDE {
51 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
52 } 52 }
53 53
54 virtual bool GetScreenList(ScreenList* screens) OVERRIDE {
55 return false;
56 }
57
58 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE {
59 return false;
60 }
61
54 protected: 62 protected:
55 Callback* callback_; 63 Callback* callback_;
56 64
57 DISALLOW_COPY_AND_ASSIGN(FakeScreenCapturer); 65 DISALLOW_COPY_AND_ASSIGN(FakeScreenCapturer);
58 }; 66 };
59 67
60 class FakeWindowCapturer : public webrtc::WindowCapturer { 68 class FakeWindowCapturer : public webrtc::WindowCapturer {
61 public: 69 public:
62 FakeWindowCapturer() 70 FakeWindowCapturer()
63 : callback_(NULL) { 71 : callback_(NULL) {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 EXPECT_CALL(observer_, OnSourceThumbnailChanged(1)) 443 EXPECT_CALL(observer_, OnSourceThumbnailChanged(1))
436 .WillOnce(QuitMessageLoop(&message_loop_)); 444 .WillOnce(QuitMessageLoop(&message_loop_));
437 445
438 // Update frame for the window and verify that we get notification about it. 446 // Update frame for the window and verify that we get notification about it.
439 window_capturer_->SetNextFrameValue(0, 1); 447 window_capturer_->SetNextFrameValue(0, 1);
440 448
441 message_loop_.Run(); 449 message_loop_.Run();
442 } 450 }
443 451
444 } // namespace 452 } // namespace
OLDNEW
« no previous file with comments | « DEPS ('k') | content/browser/renderer_host/media/desktop_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698