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

Unified Diff: remoting/host/shaped_desktop_capturer_unittest.cc

Issue 455073004: Switch DesktopEnvironment to return a DesktopCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ShapedDesktopCapturer::Create() Created 6 years, 4 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/shaped_desktop_capturer.cc ('k') | remoting/host/shaped_screen_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/shaped_desktop_capturer_unittest.cc
diff --git a/remoting/host/shaped_screen_capturer_unittest.cc b/remoting/host/shaped_desktop_capturer_unittest.cc
similarity index 86%
rename from remoting/host/shaped_screen_capturer_unittest.cc
rename to remoting/host/shaped_desktop_capturer_unittest.cc
index 1be21bf0d3cdc64501019661eadbc5f2cef422c1..115bd24f7b11e8409564b16b96d3058d16dc27a2 100644
--- a/remoting/host/shaped_screen_capturer_unittest.cc
+++ b/remoting/host/shaped_desktop_capturer_unittest.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/host/shaped_screen_capturer.h"
+#include "remoting/host/shaped_desktop_capturer.h"
#include "remoting/host/desktop_shape_tracker.h"
-#include "remoting/host/fake_screen_capturer.h"
+#include "remoting/host/fake_desktop_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"
@@ -39,7 +39,7 @@ class FakeDesktopShapeTracker : public DesktopShapeTracker {
webrtc::DesktopRegion shape_;
};
-class ShapedScreenCapturerTest : public testing::Test,
+class ShapedDesktopCapturerTest : public testing::Test,
public webrtc::DesktopCapturer::Callback {
public:
// webrtc::DesktopCapturer::Callback interface
@@ -55,9 +55,9 @@ class ShapedScreenCapturerTest : public testing::Test,
};
// Verify that captured frame have shape.
-TEST_F(ShapedScreenCapturerTest, Basic) {
- ShapedScreenCapturer capturer(
- scoped_ptr<webrtc::ScreenCapturer>(new FakeScreenCapturer()),
+TEST_F(ShapedDesktopCapturerTest, Basic) {
+ ShapedDesktopCapturer capturer(
+ scoped_ptr<webrtc::DesktopCapturer>(new FakeDesktopCapturer()),
scoped_ptr<DesktopShapeTracker>(new FakeDesktopShapeTracker()));
capturer.Start(this);
capturer.Capture(webrtc::DesktopRegion());
« no previous file with comments | « remoting/host/shaped_desktop_capturer.cc ('k') | remoting/host/shaped_screen_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698