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_save_card_infobar_delegate_m
obile.h" |
| 6 |
5 #include <memory> | 7 #include <memory> |
6 | 8 |
7 #include "base/macros.h" | 9 #include "base/macros.h" |
8 #include "base/test/histogram_tester.h" | 10 #include "base/test/histogram_tester.h" |
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
10 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 12 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 13 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
12 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
13 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" | |
14 #include "components/autofill/core/browser/autofill_test_utils.h" | 15 #include "components/autofill/core/browser/autofill_test_utils.h" |
15 #include "components/autofill/core/browser/personal_data_manager.h" | 16 #include "components/autofill/core/browser/personal_data_manager.h" |
16 #include "components/infobars/core/confirm_infobar_delegate.h" | 17 #include "components/infobars/core/confirm_infobar_delegate.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 using testing::_; | 21 using testing::_; |
21 | 22 |
22 namespace autofill { | 23 namespace autofill { |
23 | 24 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 std::unique_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate()); | 143 std::unique_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate()); |
143 | 144 |
144 base::HistogramTester histogram_tester; | 145 base::HistogramTester histogram_tester; |
145 infobar.reset(); | 146 infobar.reset(); |
146 histogram_tester.ExpectUniqueSample("Autofill.CreditCardInfoBar", | 147 histogram_tester.ExpectUniqueSample("Autofill.CreditCardInfoBar", |
147 AutofillMetrics::INFOBAR_IGNORED, 1); | 148 AutofillMetrics::INFOBAR_IGNORED, 1); |
148 } | 149 } |
149 } | 150 } |
150 | 151 |
151 } // namespace autofill | 152 } // namespace autofill |
OLD | NEW |