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

Unified Diff: mojo/public/cpp/bindings/tests/validation_unittest.cc

Issue 668663006: Standardize usage of virtual/override/final in mojo/ (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: mojo/public/cpp/bindings/tests/validation_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/validation_unittest.cc b/mojo/public/cpp/bindings/tests/validation_unittest.cc
index 8a3b19b8bc1d5842269c473d056e91874c35b62c..8f3adb88fda6d20d7793c7941365faf7b1f5d72a 100644
--- a/mojo/public/cpp/bindings/tests/validation_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/validation_unittest.cc
@@ -180,7 +180,7 @@ void RunValidationTests(const std::string& prefix,
class DummyMessageReceiver : public MessageReceiver {
public:
- virtual bool Accept(Message* message) override {
+ bool Accept(Message* message) override {
return true; // Any message is OK.
}
};
@@ -226,9 +226,9 @@ class ValidationIntegrationTest : public ValidationTest {
TestMessageReceiver(ValidationIntegrationTest* owner,
ScopedMessagePipeHandle handle)
: owner_(owner), connector_(handle.Pass()) {}
- virtual ~TestMessageReceiver() {}
+ ~TestMessageReceiver() override {}
- virtual bool Accept(Message* message) override {
+ bool Accept(Message* message) override {
bool rv = connector_.Accept(message);
owner_->PumpMessages();
return rv;
@@ -248,17 +248,17 @@ class ValidationIntegrationTest : public ValidationTest {
class IntegrationTestInterface1Client : public IntegrationTestInterface1 {
public:
- virtual ~IntegrationTestInterface1Client() {}
+ ~IntegrationTestInterface1Client() override {}
- virtual void Method0(BasicStructPtr param0) override {}
+ void Method0(BasicStructPtr param0) override {}
};
class IntegrationTestInterface1Impl
: public InterfaceImpl<IntegrationTestInterface1> {
public:
- virtual ~IntegrationTestInterface1Impl() {}
+ ~IntegrationTestInterface1Impl() override {}
- virtual void Method0(BasicStructPtr param0) override {}
+ void Method0(BasicStructPtr param0) override {}
};
TEST_F(ValidationTest, InputParser) {
« no previous file with comments | « mojo/public/cpp/bindings/tests/sample_service_unittest.cc ('k') | mojo/public/cpp/environment/lib/default_async_waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698