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

Side by Side Diff: chrome/browser/ui/autofill/card_unmask_prompt_controller_impl_unittest.cc

Issue 1062083003: Implement BrowserStateKeyedServiceFactory::GetAssociatedPrefRegistry() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include in card_unmask_prompt_controller_impl_unittest.cc Created 5 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 | « chrome/browser/spellchecker/spellcheck_factory.cc ('k') | components/keyed_service/DEPS » ('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 (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 "chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h" 5 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/histogram_tester.h" 10 #include "base/test/histogram_tester.h"
11 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" 11 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h"
12 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
13 #include "components/autofill/core/browser/autofill_client.h" 13 #include "components/autofill/core/browser/autofill_client.h"
14 #include "components/autofill/core/browser/autofill_metrics.h" 14 #include "components/autofill/core/browser/autofill_metrics.h"
15 #include "components/autofill/core/browser/autofill_test_utils.h" 15 #include "components/autofill/core/browser/autofill_test_utils.h"
16 #include "components/autofill/core/common/autofill_pref_names.h" 16 #include "components/autofill/core/common/autofill_pref_names.h"
17 #include "components/user_prefs/user_prefs.h" 17 #include "components/user_prefs/user_prefs.h"
18 #include "content/public/browser/browser_context.h"
18 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
19 #include "content/public/test/test_utils.h" 20 #include "content/public/test/test_utils.h"
20 21
21 namespace autofill { 22 namespace autofill {
22 23
23 using base::ASCIIToUTF16; 24 using base::ASCIIToUTF16;
24 25
25 class TestCardUnmaskDelegate : public CardUnmaskDelegate { 26 class TestCardUnmaskDelegate : public CardUnmaskDelegate {
26 public: 27 public:
27 TestCardUnmaskDelegate() : weak_factory_(this) {} 28 TestCardUnmaskDelegate() : weak_factory_(this) {}
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 ShowPrompt(); 515 ShowPrompt();
515 516
516 for (size_t i = 0; i < arraysize(exp_cases); ++i) { 517 for (size_t i = 0; i < arraysize(exp_cases); ++i) {
517 EXPECT_EQ(exp_cases[i].valid, controller_->InputExpirationIsValid( 518 EXPECT_EQ(exp_cases[i].valid, controller_->InputExpirationIsValid(
518 ASCIIToUTF16(exp_cases[i].input_month), 519 ASCIIToUTF16(exp_cases[i].input_month),
519 ASCIIToUTF16(exp_cases[i].input_year))); 520 ASCIIToUTF16(exp_cases[i].input_year)));
520 } 521 }
521 } 522 }
522 523
523 } // namespace autofill 524 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_factory.cc ('k') | components/keyed_service/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698