summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_unittest_proxy.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-12-22 18:14:23 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-23 02:15:16 +0000
commit93a52eb4ae8ab7f40624f780f33156f42fcbd140 (patch)
treeccb7f1ec441640ad387bf35c74982943cec0af67 /cc/trees/layer_tree_host_unittest_proxy.cc
parent8ffa00af2d4e322e91859c502aa02e0c9b0e1f2a (diff)
downloadchromium_src-93a52eb4ae8ab7f40624f780f33156f42fcbd140.zip
chromium_src-93a52eb4ae8ab7f40624f780f33156f42fcbd140.tar.gz
chromium_src-93a52eb4ae8ab7f40624f780f33156f42fcbd140.tar.bz2
Standardize usage of virtual/override/final specifiers in cc/.
The Google C++ style guide states: Explicitly annotate overrides of virtual functions or virtual destructors with an override or (less frequently) final specifier. Older (pre-C++11) code will use the virtual keyword as an inferior alternative annotation. For clarity, use exactly one of override, final, or virtual when declaring an override. To better conform to these guidelines, the following constructs have been rewritten: - if a base class has a virtual destructor, then: virtual ~Foo(); -> ~Foo() override; - virtual void Foo() override; -> void Foo() override; - virtual void Foo() override final; -> void Foo() final; This patch was automatically generated. The clang plugin can generate fixit hints, which are suggested edits when it is 100% sure it knows how to fix a problem. The hints from the clang plugin were applied to the source tree using the tool in https://codereview.chromium.org/598073004. Several formatting edits by clang-format were manually reverted, due to mangling of some of the more complicate IPC macros. BUG=417463 Review URL: https://codereview.chromium.org/818033004 Cr-Commit-Position: refs/heads/master@{#309520}
Diffstat (limited to 'cc/trees/layer_tree_host_unittest_proxy.cc')
-rw-r--r--cc/trees/layer_tree_host_unittest_proxy.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/trees/layer_tree_host_unittest_proxy.cc b/cc/trees/layer_tree_host_unittest_proxy.cc
index f27b553..3135103 100644
--- a/cc/trees/layer_tree_host_unittest_proxy.cc
+++ b/cc/trees/layer_tree_host_unittest_proxy.cc
@@ -28,7 +28,7 @@ namespace cc {
class ProxyTest : public LayerTreeTest {
protected:
ProxyTest() {}
- virtual ~ProxyTest() {}
+ ~ProxyTest() override {}
void Run(bool threaded, bool impl_side_painting) {
// We don't need to care about delegating mode.
@@ -67,7 +67,7 @@ class ProxyTestScheduledActionsBasic : public ProxyTest {
ProxyTestScheduledActionsBasic() : action_phase_(0) {
}
- virtual ~ProxyTestScheduledActionsBasic() {}
+ ~ProxyTestScheduledActionsBasic() override {}
private:
int action_phase_;
@@ -80,7 +80,7 @@ PROXY_TEST_SCHEDULED_ACTION(ProxyTestScheduledActionsBasic);
class ThreadProxyTest : public ProxyTest {
protected:
ThreadProxyTest() {}
- virtual ~ThreadProxyTest() {}
+ ~ThreadProxyTest() override {}
const ThreadProxy::MainThreadOnly& ThreadProxyMainOnly() const {
DCHECK(proxy());
@@ -101,7 +101,7 @@ class ThreadProxyTest : public ProxyTest {
class ThreadProxyTestSetNeedsCommit : public ThreadProxyTest {
protected:
ThreadProxyTestSetNeedsCommit() {}
- virtual ~ThreadProxyTestSetNeedsCommit() {}
+ ~ThreadProxyTestSetNeedsCommit() override {}
void BeginTest() override {
EXPECT_FALSE(ThreadProxyMainOnly().commit_requested);