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

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

Issue 17052008: [Autofill] Remove the "Disable native Autofill UI" flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/ui/browser_tab_contents.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) 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/memory/weak_ptr.h" 6 #include "base/memory/weak_ptr.h"
7 #include "base/prefs/testing_pref_service.h" 7 #include "base/prefs/testing_pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 9 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 10 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 autofill_popup_controller_(NULL) {} 154 autofill_popup_controller_(NULL) {}
155 virtual ~AutofillPopupControllerUnitTest() {} 155 virtual ~AutofillPopupControllerUnitTest() {}
156 156
157 virtual void SetUp() OVERRIDE { 157 virtual void SetUp() OVERRIDE {
158 ChromeRenderViewHostTestHarness::SetUp(); 158 ChromeRenderViewHostTestHarness::SetUp();
159 159
160 AutofillDriverImpl::CreateForWebContentsAndDelegate( 160 AutofillDriverImpl::CreateForWebContentsAndDelegate(
161 web_contents(), 161 web_contents(),
162 manager_delegate_.get(), 162 manager_delegate_.get(),
163 "en-US", 163 "en-US",
164 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER, 164 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
165 false);
166 AutofillDriverImpl* driver = 165 AutofillDriverImpl* driver =
167 AutofillDriverImpl::FromWebContents(web_contents()); 166 AutofillDriverImpl::FromWebContents(web_contents());
168 external_delegate_.reset( 167 external_delegate_.reset(
169 new NiceMock<MockAutofillExternalDelegate>( 168 new NiceMock<MockAutofillExternalDelegate>(
170 web_contents(), 169 web_contents(),
171 driver->autofill_manager())); 170 driver->autofill_manager()));
172 171
173 autofill_popup_controller_ = 172 autofill_popup_controller_ =
174 new testing::NiceMock<TestAutofillPopupController>( 173 new testing::NiceMock<TestAutofillPopupController>(
175 external_delegate_->GetWeakPtr(), gfx::Rect()); 174 external_delegate_->GetWeakPtr(), gfx::Rect());
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 EXPECT_EQ(expected_popup_bounds[i].ToString(), 537 EXPECT_EQ(expected_popup_bounds[i].ToString(),
539 autofill_popup_controller->popup_bounds().ToString()) << 538 autofill_popup_controller->popup_bounds().ToString()) <<
540 "Popup bounds failed to match for test " << i; 539 "Popup bounds failed to match for test " << i;
541 540
542 // Hide the controller to delete it. 541 // Hide the controller to delete it.
543 autofill_popup_controller->DoHide(); 542 autofill_popup_controller->DoHide();
544 } 543 }
545 } 544 }
546 545
547 } // namespace autofill 546 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/ui/browser_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698