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

Side by Side Diff: chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm

Issue 6246009: Hopefully fix PersonalDataManagerTest.ImportFormDataNotEnoughFilledFields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/autofill/personal_data_manager_unittest.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ref_counted.h" 5 #include "base/ref_counted.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #import "chrome/browser/autofill/autofill_address_model_mac.h" 8 #import "chrome/browser/autofill/autofill_address_model_mac.h"
9 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" 9 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h"
10 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" 10 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool test_data_is_loaded_; 67 bool test_data_is_loaded_;
68 68
69 private: 69 private:
70 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerMock); 70 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerMock);
71 }; 71 };
72 72
73 // Mock profile that gives back our own mock |PersonalDataManager|. 73 // Mock profile that gives back our own mock |PersonalDataManager|.
74 class ProfileMock : public TestingProfile { 74 class ProfileMock : public TestingProfile {
75 public: 75 public:
76 ProfileMock() { 76 ProfileMock() {
77 test_manager_ =new PersonalDataManagerMock; 77 test_manager_ = new PersonalDataManagerMock;
78 } 78 }
79 virtual ~ProfileMock() {} 79 virtual ~ProfileMock() {}
80 80
81 virtual PersonalDataManager* GetPersonalDataManager() { 81 virtual PersonalDataManager* GetPersonalDataManager() {
82 return test_manager_.get(); 82 return test_manager_.get();
83 } 83 }
84 84
85 scoped_refptr<PersonalDataManagerMock> test_manager_; 85 scoped_refptr<PersonalDataManagerMock> test_manager_;
86 86
87 private: 87 private:
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 // Observer should not have been notified. 718 // Observer should not have been notified.
719 ASSERT_FALSE(observer_.hit_); 719 ASSERT_FALSE(observer_.hit_);
720 720
721 // Auxiliary profiles setting should have been saved. 721 // Auxiliary profiles setting should have been saved.
722 ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean( 722 ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean(
723 prefs::kAutoFillAuxiliaryProfilesEnabled)); 723 prefs::kAutoFillAuxiliaryProfilesEnabled));
724 } 724 }
725 725
726 } // namespace 726 } // namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/personal_data_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698