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

Side by Side Diff: chrome/browser/autofill/autofill_save_card_infobar_delegate_mobile_unittest.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/browser/content_autofill_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698