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

Unified Diff: components/invalidation/sync_system_resources_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/invalidation/sync_system_resources_unittest.cc
diff --git a/components/invalidation/sync_system_resources_unittest.cc b/components/invalidation/sync_system_resources_unittest.cc
index 0956b3430d2aba03d739df4263207b0205640c24..ea2fb52e43bdf46c0faacae6c36c84faece786fd 100644
--- a/components/invalidation/sync_system_resources_unittest.cc
+++ b/components/invalidation/sync_system_resources_unittest.cc
@@ -179,24 +179,20 @@ TEST_F(SyncSystemResourcesTest, WriteState) {
class TestSyncNetworkChannel : public SyncNetworkChannel {
public:
TestSyncNetworkChannel() {}
- virtual ~TestSyncNetworkChannel() {}
+ ~TestSyncNetworkChannel() override {}
using SyncNetworkChannel::NotifyNetworkStatusChange;
using SyncNetworkChannel::NotifyChannelStateChange;
using SyncNetworkChannel::DeliverIncomingMessage;
- virtual void SendMessage(const std::string& message) override {
- }
+ void SendMessage(const std::string& message) override {}
- virtual void UpdateCredentials(const std::string& email,
- const std::string& token) override {
- }
+ void UpdateCredentials(const std::string& email,
+ const std::string& token) override {}
- virtual int GetInvalidationClientType() override {
- return 0;
- }
+ int GetInvalidationClientType() override { return 0; }
- virtual void RequestDetailedStatus(
+ void RequestDetailedStatus(
base::Callback<void(const base::DictionaryValue&)> callback) override {
base::DictionaryValue value;
callback.Run(value);
@@ -220,7 +216,7 @@ class SyncNetworkChannelTest
network_channel_.RemoveObserver(this);
}
- virtual void OnNetworkChannelStateChanged(
+ void OnNetworkChannelStateChanged(
InvalidatorState invalidator_state) override {
last_invalidator_state_ = invalidator_state;
}
« no previous file with comments | « components/invalidation/sync_system_resources.h ('k') | components/invalidation/ticl_invalidation_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698