| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/browsing_data/core/counters/autofill_counter.h" | 5 #include "components/browsing_data/core/counters/autofill_counter.h" |
| 6 | 6 |
| 7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/stringprintf.h" | |
| 12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/web_data_service_factory.h" | 15 #include "chrome/browser/web_data_service_factory.h" |
| 17 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
| 18 #include "components/autofill/core/browser/autofill_profile.h" | 17 #include "components/autofill/core/browser/autofill_profile.h" |
| 19 #include "components/autofill/core/browser/autofill_test_utils.h" | 18 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 20 #include "components/autofill/core/browser/autofill_type.h" | 19 #include "components/autofill/core/browser/autofill_type.h" |
| 21 #include "components/autofill/core/browser/credit_card.h" | 20 #include "components/autofill/core/browser/credit_card.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 counter.SetPeriodStartForTesting(test_case.period_start); | 403 counter.SetPeriodStartForTesting(test_case.period_start); |
| 405 counter.Restart(); | 404 counter.Restart(); |
| 406 WaitForCounting(); | 405 WaitForCounting(); |
| 407 EXPECT_EQ(test_case.expected_num_suggestions, GetNumSuggestions()); | 406 EXPECT_EQ(test_case.expected_num_suggestions, GetNumSuggestions()); |
| 408 EXPECT_EQ(test_case.expected_num_credit_cards, GetNumCreditCards()); | 407 EXPECT_EQ(test_case.expected_num_credit_cards, GetNumCreditCards()); |
| 409 EXPECT_EQ(test_case.expected_num_addresses, GetNumAddresses()); | 408 EXPECT_EQ(test_case.expected_num_addresses, GetNumAddresses()); |
| 410 } | 409 } |
| 411 } | 410 } |
| 412 | 411 |
| 413 } // namespace | 412 } // namespace |
| OLD | NEW |