OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "chrome/browser/autofill/autofill_metrics.h" | |
9 #include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h" | 8 #include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h" |
| 9 #include "components/autofill/browser/autofill_metrics.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 class TestAutofillMetrics : public AutofillMetrics { | 15 class TestAutofillMetrics : public AutofillMetrics { |
16 public: | 16 public: |
17 TestAutofillMetrics() | 17 TestAutofillMetrics() |
18 : metric_(NUM_BUBBLE_METRICS) {} | 18 : metric_(NUM_BUBBLE_METRICS) {} |
19 virtual ~TestAutofillMetrics() {} | 19 virtual ~TestAutofillMetrics() {} |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Test that after a bubble is dismissed it is not considered ignored. | 126 // Test that after a bubble is dismissed it is not considered ignored. |
127 controller.BubbleDestroyed(); | 127 controller.BubbleDestroyed(); |
128 | 128 |
129 EXPECT_EQ(AutofillMetrics::BUBBLE_DISMISSED, | 129 EXPECT_EQ(AutofillMetrics::BUBBLE_DISMISSED, |
130 controller.get_metric_logger()->metric()); | 130 controller.get_metric_logger()->metric()); |
131 EXPECT_EQ(0, closure.run_count()); | 131 EXPECT_EQ(0, closure.run_count()); |
132 } | 132 } |
133 | 133 |
134 } // namespace autofill | 134 } // namespace autofill |
OLD | NEW |