summaryrefslogtreecommitdiffstats
path: root/sql/sqlite_features_unittest.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-12-22 15:00:24 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-22 23:01:07 +0000
commit1b3b125e900adb9d8493c6ac4aa4a8ef24d2a631 (patch)
treec0064c48b539be05938ac173e67a61ea089660f9 /sql/sqlite_features_unittest.cc
parent2c695fc21efceac67fe5ca10981bed107698219e (diff)
downloadchromium_src-1b3b125e900adb9d8493c6ac4aa4a8ef24d2a631.zip
chromium_src-1b3b125e900adb9d8493c6ac4aa4a8ef24d2a631.tar.gz
chromium_src-1b3b125e900adb9d8493c6ac4aa4a8ef24d2a631.tar.bz2
Standardize usage of virtual/override/final specifiers in sql/.
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/817403002 Cr-Commit-Position: refs/heads/master@{#309480}
Diffstat (limited to 'sql/sqlite_features_unittest.cc')
-rw-r--r--sql/sqlite_features_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sqlite_features_unittest.cc b/sql/sqlite_features_unittest.cc
index e721693..d9bcb86 100644
--- a/sql/sqlite_features_unittest.cc
+++ b/sql/sqlite_features_unittest.cc
@@ -27,7 +27,7 @@ class SQLiteFeaturesTest : public testing::Test {
public:
SQLiteFeaturesTest() : error_(SQLITE_OK) {}
- virtual void SetUp() {
+ void SetUp() override {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
ASSERT_TRUE(db_.Open(temp_dir_.path().AppendASCII("SQLStatementTest.db")));
@@ -37,7 +37,7 @@ class SQLiteFeaturesTest : public testing::Test {
&error_, &sql_text_));
}
- virtual void TearDown() {
+ void TearDown() override {
// If any error happened the original sql statement can be found in
// |sql_text_|.
EXPECT_EQ(SQLITE_OK, error_);