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

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

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/guid.h" 5 #include "base/guid.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void CancelForTesting() OVERRIDE {} 59 virtual void CancelForTesting() OVERRIDE {}
60 60
61 MOCK_METHOD0(ModelChanged, void()); 61 MOCK_METHOD0(ModelChanged, void());
62 62
63 private: 63 private:
64 DISALLOW_COPY_AND_ASSIGN(TestAutofillDialogView); 64 DISALLOW_COPY_AND_ASSIGN(TestAutofillDialogView);
65 }; 65 };
66 66
67 class TestPersonalDataManager : public PersonalDataManager { 67 class TestPersonalDataManager : public PersonalDataManager {
68 public: 68 public:
69 TestPersonalDataManager() {} 69 TestPersonalDataManager() : PersonalDataManager("en-US") {}
70 virtual ~TestPersonalDataManager() {} 70 virtual ~TestPersonalDataManager() {}
71 71
72 void AddTestingProfile(AutofillProfile* profile) { 72 void AddTestingProfile(AutofillProfile* profile) {
73 profiles_.push_back(profile); 73 profiles_.push_back(profile);
74 FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_, 74 FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_,
75 OnPersonalDataChanged()); 75 OnPersonalDataChanged());
76 } 76 }
77 77
78 virtual const std::vector<AutofillProfile*>& GetProfiles() OVERRIDE { 78 virtual const std::vector<AutofillProfile*>& GetProfiles() OVERRIDE {
79 return profiles_; 79 return profiles_;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 ASSERT_TRUE(account_menu); 603 ASSERT_TRUE(account_menu);
604 ASSERT_GE(2, account_menu->GetItemCount()); 604 ASSERT_GE(2, account_menu->GetItemCount());
605 account_menu->ActivatedAt(0); 605 account_menu->ActivatedAt(0);
606 account_menu->ActivatedAt(1); 606 account_menu->ActivatedAt(1);
607 607
608 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); 608 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK));
609 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); 609 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL));
610 } 610 }
611 611
612 } // namespace autofill 612 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698