Index: ui/views/animation/test/test_ink_drop_host.h |
diff --git a/ui/views/animation/test/test_ink_drop_host.h b/ui/views/animation/test/test_ink_drop_host.h |
index b952b77adb815240e34283de12182abb097571da..7b515cbe4f628f7eb49c70cf02d06d7625e2a57f 100644 |
--- a/ui/views/animation/test/test_ink_drop_host.h |
+++ b/ui/views/animation/test/test_ink_drop_host.h |
@@ -10,19 +10,25 @@ |
namespace views { |
-// A non-functional, dummy implementation of an InkDropHost that can be used as |
-// a placeholder during tests. |
+// A non-functional implementation of an InkDropHost that can be used during |
+// tests. Tracks the number of hosted ink drop layers. |
class TestInkDropHost : public InkDropHost { |
public: |
TestInkDropHost(); |
~TestInkDropHost() override; |
+ int num_ink_drop_layers() const { |
+ return num_ink_drop_layers_; |
+ } |
+ |
// TestInkDropHost: |
void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; |
gfx::Point CalculateInkDropCenter() const override; |
private: |
+ int num_ink_drop_layers_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TestInkDropHost); |
}; |