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

Unified Diff: remoting/host/shaped_screen_capturer_unittest.cc

Issue 393703002: Rename *Fake to Fake* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/screen_capturer_fake.cc ('k') | remoting/host/video_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
« no previous file with comments | « remoting/host/screen_capturer_fake.cc ('k') | remoting/host/video_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698