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

Unified Diff: tools/gn/builder_unittest.cc

Issue 667143003: Standardize usage of virtual/override/final in tools/gn/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: tools/gn/builder_unittest.cc
diff --git a/tools/gn/builder_unittest.cc b/tools/gn/builder_unittest.cc
index b9b7e5fb50b75b267ef208426a6c0a88d19eda32..aaa1d8e75b02573b3bc873c55d4de562efc0f867 100644
--- a/tools/gn/builder_unittest.cc
+++ b/tools/gn/builder_unittest.cc
@@ -17,18 +17,14 @@ class MockLoader : public Loader {
}
// Loader implementation:
- virtual void Load(const SourceFile& file,
- const LocationRange& origin,
- const Label& toolchain_name) OVERRIDE {
+ void Load(const SourceFile& file,
+ const LocationRange& origin,
+ const Label& toolchain_name) OVERRIDE {
files_.push_back(file);
}
- virtual void ToolchainLoaded(const Toolchain* toolchain) OVERRIDE {
- }
- virtual Label GetDefaultToolchain() const OVERRIDE {
- return Label();
- }
- virtual const Settings* GetToolchainSettings(
- const Label& label) const OVERRIDE {
+ void ToolchainLoaded(const Toolchain* toolchain) OVERRIDE {}
+ Label GetDefaultToolchain() const OVERRIDE { return Label(); }
+ const Settings* GetToolchainSettings(const Label& label) const OVERRIDE {
return NULL;
}
@@ -52,7 +48,7 @@ class MockLoader : public Loader {
}
private:
- virtual ~MockLoader() {}
+ ~MockLoader() override {}
std::vector<SourceFile> files_;
};

Powered by Google App Engine
This is Rietveld 408576698