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

Unified Diff: remoting/host/shaped_desktop_capturer_unittest.cc

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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.h ('k') | remoting/host/signaling_connector.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_desktop_capturer_unittest.cc b/remoting/host/shaped_desktop_capturer_unittest.cc
index 3289240b1092f3af4fb5ab7545f053d58364bede..dbe353e4c01f0534c3d9c01fee6899d1625dbcfd 100644
--- a/remoting/host/shaped_desktop_capturer_unittest.cc
+++ b/remoting/host/shaped_desktop_capturer_unittest.cc
@@ -16,7 +16,7 @@ namespace remoting {
class FakeDesktopShapeTracker : public DesktopShapeTracker {
public:
FakeDesktopShapeTracker() {}
- virtual ~FakeDesktopShapeTracker() {}
+ ~FakeDesktopShapeTracker() override {}
static webrtc::DesktopRegion CreateShape() {
webrtc::DesktopRegion result;
@@ -25,11 +25,9 @@ class FakeDesktopShapeTracker : public DesktopShapeTracker {
return result;
}
- virtual void RefreshDesktopShape() override {
- shape_ = CreateShape();
- }
+ void RefreshDesktopShape() override { shape_ = CreateShape(); }
- virtual const webrtc::DesktopRegion& desktop_shape() override {
+ const webrtc::DesktopRegion& desktop_shape() override {
// desktop_shape() can't be called before RefreshDesktopShape().
EXPECT_FALSE(shape_.is_empty());
return shape_;
@@ -43,11 +41,11 @@ class ShapedDesktopCapturerTest : public testing::Test,
public webrtc::DesktopCapturer::Callback {
public:
// webrtc::DesktopCapturer::Callback interface
- virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) override {
+ webrtc::SharedMemory* CreateSharedMemory(size_t size) override {
return NULL;
}
- virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) override {
+ void OnCaptureCompleted(webrtc::DesktopFrame* frame) override {
last_frame_.reset(frame);
}
« no previous file with comments | « remoting/host/shaped_desktop_capturer.h ('k') | remoting/host/signaling_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698