| Index: remoting/host/shaped_screen_capturer_unittest.cc
|
| diff --git a/remoting/host/shaped_screen_capturer_unittest.cc b/remoting/host/shaped_screen_capturer_unittest.cc
|
| index f6b7da292e25c5e5f93b571349384dbba9152022..1be21bf0d3cdc64501019661eadbc5f2cef422c1 100644
|
| --- a/remoting/host/shaped_screen_capturer_unittest.cc
|
| +++ b/remoting/host/shaped_screen_capturer_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "remoting/host/shaped_screen_capturer.h"
|
|
|
| #include "remoting/host/desktop_shape_tracker.h"
|
| +#include "remoting/host/fake_screen_capturer.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
|
| #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
|
| @@ -12,38 +13,6 @@
|
|
|
| namespace remoting {
|
|
|
| -const int kScreenSize = 10;
|
| -
|
| -class FakeScreenCapturer : public webrtc::ScreenCapturer {
|
| - public:
|
| - FakeScreenCapturer() {}
|
| - virtual ~FakeScreenCapturer() {}
|
| -
|
| - virtual void Start(Callback* callback) OVERRIDE {
|
| - callback_ = callback;
|
| - }
|
| -
|
| - virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE {
|
| - webrtc::DesktopFrame* frame = new webrtc::BasicDesktopFrame(
|
| - webrtc::DesktopSize(kScreenSize, kScreenSize));
|
| - memset(frame->data(), 0, frame->stride() * kScreenSize);
|
| - callback_->OnCaptureCompleted(frame);
|
| - }
|
| -
|
| - virtual void SetMouseShapeObserver(
|
| - MouseShapeObserver* mouse_shape_observer) OVERRIDE {
|
| - }
|
| - virtual bool GetScreenList(ScreenList* screens) OVERRIDE {
|
| - return false;
|
| - }
|
| - virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE {
|
| - return false;
|
| - }
|
| -
|
| - private:
|
| - Callback* callback_;
|
| -};
|
| -
|
| class FakeDesktopShapeTracker : public DesktopShapeTracker {
|
| public:
|
| FakeDesktopShapeTracker() {}
|
|
|