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

Unified Diff: ui/views/animation/test/test_ink_drop_host.cc

Issue 2431493002: MD Buttons: Don't add layers for hidden -> hidden transitions. (Closed)
Patch Set: Additional test Created 4 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
« no previous file with comments | « ui/views/animation/test/test_ink_drop_host.h ('k') | ui/views/controls/button/custom_button_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/test/test_ink_drop_host.cc
diff --git a/ui/views/animation/test/test_ink_drop_host.cc b/ui/views/animation/test/test_ink_drop_host.cc
index f1bc3af97365dcea03083915990ff8d54711ede1..1ff7fc5956b0a95b21623281f892212f2c664511 100644
--- a/ui/views/animation/test/test_ink_drop_host.cc
+++ b/ui/views/animation/test/test_ink_drop_host.cc
@@ -82,7 +82,8 @@ class TestInkDropHighlight : public InkDropHighlight {
} // namespace
TestInkDropHost::TestInkDropHost()
- : num_ink_drop_layers_(0),
+ : num_ink_drop_layers_added_(0),
+ num_ink_drop_layers_removed_(0),
should_show_highlight_(false),
ripple_overrides_highlight_(true),
disable_timers_for_test_(false) {}
@@ -90,11 +91,11 @@ TestInkDropHost::TestInkDropHost()
TestInkDropHost::~TestInkDropHost() {}
void TestInkDropHost::AddInkDropLayer(ui::Layer* ink_drop_layer) {
- ++num_ink_drop_layers_;
+ ++num_ink_drop_layers_added_;
}
void TestInkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
- --num_ink_drop_layers_;
+ ++num_ink_drop_layers_removed_;
}
std::unique_ptr<InkDropRipple> TestInkDropHost::CreateInkDropRipple() const {
« no previous file with comments | « ui/views/animation/test/test_ink_drop_host.h ('k') | ui/views/controls/button/custom_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698