OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/autofill/core/browser/autofill_cc_infobar_delegate.h" | 5 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/test/histogram_tester.h" | 9 #include "base/test/histogram_tester.h" |
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 10 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
10 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 11 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
12 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
13 #include "components/autofill/core/browser/autofill_test_utils.h" | 14 #include "components/autofill/core/browser/autofill_test_utils.h" |
14 #include "components/autofill/core/browser/personal_data_manager.h" | 15 #include "components/autofill/core/browser/personal_data_manager.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate()); | 139 scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate()); |
139 | 140 |
140 base::HistogramTester histogram_tester; | 141 base::HistogramTester histogram_tester; |
141 infobar.reset(); | 142 infobar.reset(); |
142 histogram_tester.ExpectUniqueSample("Autofill.CreditCardInfoBar", | 143 histogram_tester.ExpectUniqueSample("Autofill.CreditCardInfoBar", |
143 AutofillMetrics::INFOBAR_IGNORED, 1); | 144 AutofillMetrics::INFOBAR_IGNORED, 1); |
144 } | 145 } |
145 } | 146 } |
146 | 147 |
147 } // namespace autofill | 148 } // namespace autofill |
OLD | NEW |