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

Unified Diff: components/sync_driver/device_info_sync_service_unittest.cc

Issue 666133002: Standardize usage of virtual/override/final in components/ (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
Index: components/sync_driver/device_info_sync_service_unittest.cc
diff --git a/components/sync_driver/device_info_sync_service_unittest.cc b/components/sync_driver/device_info_sync_service_unittest.cc
index 1dbe6a83a47453c1142066ec689471c375a7176e..9722aa4d9c94726a165b0242234b265dc58d3635 100644
--- a/components/sync_driver/device_info_sync_service_unittest.cc
+++ b/components/sync_driver/device_info_sync_service_unittest.cc
@@ -34,19 +34,18 @@ namespace {
class TestChangeProcessor : public SyncChangeProcessor {
public:
TestChangeProcessor() {}
- virtual ~TestChangeProcessor() {}
+ ~TestChangeProcessor() override {}
// SyncChangeProcessor implementation.
// Store a copy of all the changes passed in so we can examine them later.
- virtual SyncError ProcessSyncChanges(
- const tracked_objects::Location& from_here,
- const SyncChangeList& change_list) override {
+ SyncError ProcessSyncChanges(const tracked_objects::Location& from_here,
+ const SyncChangeList& change_list) override {
change_list_ = change_list;
return SyncError();
}
// This method isn't used in these tests.
- virtual SyncDataList GetAllSyncData(ModelType type) const override {
+ SyncDataList GetAllSyncData(ModelType type) const override {
return SyncDataList();
}
@@ -98,9 +97,7 @@ class DeviceInfoSyncServiceTest : public testing::Test,
sync_service_->RemoveObserver(this);
}
- virtual void OnDeviceInfoChange() override {
- num_device_info_changed_callbacks_++;
- }
+ void OnDeviceInfoChange() override { num_device_info_changed_callbacks_++; }
scoped_ptr<SyncChangeProcessor> PassProcessor() {
return scoped_ptr<SyncChangeProcessor>(
« no previous file with comments | « components/sync_driver/device_info_sync_service.h ('k') | components/sync_driver/fake_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698