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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 14696007: Warn on missing OVERRIDE/virtual everywhere, not just in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 08c2228824e15426031c95e3a11fbe6c95ea2551..dc95390a811d3c9bfa4470eb2c20b60ea48614c8 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -2362,7 +2362,7 @@ class LayerTreeHostTestUninvertibleTransformDoesNotBlockActivation
PostSetNeedsCommitToMainThread();
}
- virtual void TreeActivatedOnThread(LayerTreeHostImpl* host_impl) {
+ virtual void TreeActivatedOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
EndTest();
}
@@ -2582,7 +2582,7 @@ class LayerTreeHostTestAsyncReadback : public LayerTreeHostTest {
PostSetNeedsCommitToMainThread();
}
- virtual void DidCommitAndDrawFrame() {
+ virtual void DidCommitAndDrawFrame() OVERRIDE {
int frame = layer_tree_host()->commit_number();
switch (frame) {
case 1:
@@ -2632,7 +2632,7 @@ class LayerTreeHostTestAsyncReadback : public LayerTreeHostTest {
callbacks_.push_back(gfx::Size(bitmap->width(), bitmap->height()));
}
- virtual void AfterTest() {}
+ virtual void AfterTest() OVERRIDE {}
virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE {
if (use_gl_renderer_)
@@ -2691,7 +2691,7 @@ class LayerTreeHostTestAsyncReadbackLayerDestroyed : public LayerTreeHostTest {
PostSetNeedsCommitToMainThread();
}
- virtual void DidCommit() {
+ virtual void DidCommit() OVERRIDE {
int frame = layer_tree_host()->commit_number();
switch (frame) {
case 1:
@@ -2746,7 +2746,7 @@ class LayerTreeHostTestAsyncReadbackLayerDestroyed : public LayerTreeHostTest {
++callback_count_;
}
- virtual void AfterTest() {}
+ virtual void AfterTest() OVERRIDE {}
int callback_count_;
FakeContentLayerClient client_;

Powered by Google App Engine
This is Rietveld 408576698