summaryrefslogtreecommitdiffstats
path: root/content/test/ppapi_unittest.h
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-28 19:12:06 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-29 02:12:32 +0000
commitf576215cf642f287b6a5ff854a122e064bbaf0e0 (patch)
tree7194bea71bc38a5a3db9c9156feb835c3ce7398f /content/test/ppapi_unittest.h
parentb57ea2da2ad3530188c071774b3f84a8b8037b75 (diff)
downloadchromium_src-f576215cf642f287b6a5ff854a122e064bbaf0e0.zip
chromium_src-f576215cf642f287b6a5ff854a122e064bbaf0e0.tar.gz
chromium_src-f576215cf642f287b6a5ff854a122e064bbaf0e0.tar.bz2
Standardize usage of virtual/override/final specifiers.
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. BUG=417463 R=creis@chromium.org Review URL: https://codereview.chromium.org/686523002 Cr-Commit-Position: refs/heads/master@{#301771}
Diffstat (limited to 'content/test/ppapi_unittest.h')
-rw-r--r--content/test/ppapi_unittest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/test/ppapi_unittest.h b/content/test/ppapi_unittest.h
index eb4f3b9..15926c1 100644
--- a/content/test/ppapi_unittest.h
+++ b/content/test/ppapi_unittest.h
@@ -22,10 +22,10 @@ class PluginModule;
class PpapiUnittest : public testing::Test {
public:
PpapiUnittest();
- virtual ~PpapiUnittest();
+ ~PpapiUnittest() override;
- virtual void SetUp();
- virtual void TearDown();
+ void SetUp() override;
+ void TearDown() override;
PluginModule* module() const { return module_.get(); }
PepperPluginInstanceImpl* instance() const { return instance_.get(); }