summaryrefslogtreecommitdiffstats
path: root/net/android/network_change_notifier_android_unittest.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-02-05 19:42:57 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-06 03:44:26 +0000
commite6c6db7d6e4f367f8a5205a034e972eea3a348c9 (patch)
tree31d39d6c51ede38b7074329a8d1677e13716c975 /net/android/network_change_notifier_android_unittest.cc
parentc0107ee59bdb5b6337f7bbdb4e8210c0bfeb547b (diff)
downloadchromium_src-e6c6db7d6e4f367f8a5205a034e972eea3a348c9.zip
chromium_src-e6c6db7d6e4f367f8a5205a034e972eea3a348c9.tar.gz
chromium_src-e6c6db7d6e4f367f8a5205a034e972eea3a348c9.tar.bz2
Update {virtual,override,final} to follow C++11 style in net.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. This patch was automatically generated with an OS=android build using a variation of https://codereview.chromium.org/598073004. BUG=417463 Review URL: https://codereview.chromium.org/897423002 Cr-Commit-Position: refs/heads/master@{#314964}
Diffstat (limited to 'net/android/network_change_notifier_android_unittest.cc')
-rw-r--r--net/android/network_change_notifier_android_unittest.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/net/android/network_change_notifier_android_unittest.cc b/net/android/network_change_notifier_android_unittest.cc
index 54e5583..83dd70e 100644
--- a/net/android/network_change_notifier_android_unittest.cc
+++ b/net/android/network_change_notifier_android_unittest.cc
@@ -25,11 +25,9 @@ class NetworkChangeNotifierDelegateAndroidObserver
: type_notifications_count_(0), max_bandwidth_notifications_count_(0) {}
// NetworkChangeNotifierDelegateAndroid::Observer:
- virtual void OnConnectionTypeChanged() override {
- type_notifications_count_++;
- }
+ void OnConnectionTypeChanged() override { type_notifications_count_++; }
- virtual void OnMaxBandwidthChanged(double max_bandwidth_mbps) override {
+ void OnMaxBandwidthChanged(double max_bandwidth_mbps) override {
max_bandwidth_notifications_count_++;
}
@@ -49,7 +47,7 @@ class NetworkChangeNotifierObserver
NetworkChangeNotifierObserver() : notifications_count_(0) {}
// NetworkChangeNotifier::Observer:
- virtual void OnConnectionTypeChanged(
+ void OnConnectionTypeChanged(
NetworkChangeNotifier::ConnectionType connection_type) override {
notifications_count_++;
}
@@ -68,7 +66,7 @@ class BaseNetworkChangeNotifierAndroidTest : public testing::Test {
protected:
typedef NetworkChangeNotifier::ConnectionType ConnectionType;
- virtual ~BaseNetworkChangeNotifierAndroidTest() {}
+ ~BaseNetworkChangeNotifierAndroidTest() override {}
void RunTest(
const base::Callback<int(void)>& notifications_count_getter,
@@ -148,7 +146,7 @@ class NetworkChangeNotifierDelegateAndroidTest
delegate_.AddObserver(&other_delegate_observer_);
}
- virtual ~NetworkChangeNotifierDelegateAndroidTest() {
+ ~NetworkChangeNotifierDelegateAndroidTest() override {
delegate_.RemoveObserver(&delegate_observer_);
delegate_.RemoveObserver(&other_delegate_observer_);
}