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

Side by Side Diff: cc/base/unique_notifier_unittest.cc

Issue 628443002: replace OVERRIDE and FINAL with override and final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 unified diff | Download patch
« no previous file with comments | « cc/base/latency_info_swap_promise_monitor.h ('k') | cc/blink/scrollbar_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "cc/base/unique_notifier.h" 10 #include "cc/base/unique_notifier.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace cc { 13 namespace cc {
14 namespace { 14 namespace {
15 15
16 class UniqueNotifierTest : public testing::Test { 16 class UniqueNotifierTest : public testing::Test {
17 public: 17 public:
18 UniqueNotifierTest() : notification_count_(0) {} 18 UniqueNotifierTest() : notification_count_(0) {}
19 19
20 virtual void SetUp() OVERRIDE { ResetNotificationCount(); } 20 virtual void SetUp() override { ResetNotificationCount(); }
21 21
22 void Notify() { ++notification_count_; } 22 void Notify() { ++notification_count_; }
23 23
24 int NotificationCount() const { return notification_count_; } 24 int NotificationCount() const { return notification_count_; }
25 25
26 void ResetNotificationCount() { notification_count_ = 0; } 26 void ResetNotificationCount() { notification_count_ = 0; }
27 27
28 protected: 28 protected:
29 int notification_count_; 29 int notification_count_;
30 }; 30 };
(...skipping 22 matching lines...) Expand all
53 notifier.Schedule(); 53 notifier.Schedule();
54 } 54 }
55 55
56 // Notifier went out of scope, so we don't expect to get a notification. 56 // Notifier went out of scope, so we don't expect to get a notification.
57 base::RunLoop().RunUntilIdle(); 57 base::RunLoop().RunUntilIdle();
58 EXPECT_EQ(2, NotificationCount()); 58 EXPECT_EQ(2, NotificationCount());
59 } 59 }
60 60
61 } // namespace 61 } // namespace
62 } // namespace cc 62 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/latency_info_swap_promise_monitor.h ('k') | cc/blink/scrollbar_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698