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

Side by Side Diff: components/autofill/content/browser/content_autofill_driver_unittest.cc

Issue 2745803003: autofill-try
Patch Set: autofill-try Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/autofill/content/browser/content_autofill_driver.h" 5 #include "components/autofill/content/browser/content_autofill_driver.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 class MockAutofillClient : public TestAutofillClient { 239 class MockAutofillClient : public TestAutofillClient {
240 public: 240 public:
241 MOCK_METHOD0(OnFirstUserGestureObserved, void()); 241 MOCK_METHOD0(OnFirstUserGestureObserved, void());
242 }; 242 };
243 243
244 class TestContentAutofillDriver : public ContentAutofillDriver { 244 class TestContentAutofillDriver : public ContentAutofillDriver {
245 public: 245 public:
246 TestContentAutofillDriver(content::RenderFrameHost* rfh, 246 TestContentAutofillDriver(content::RenderFrameHost* rfh,
247 AutofillClient* client) 247 AutofillClient* client)
248 : ContentAutofillDriver(rfh, client, kAppLocale, kDownloadState) { 248 : ContentAutofillDriver(rfh,
249 client,
250 kAppLocale,
251 kDownloadState,
252 nullptr) {
249 std::unique_ptr<AutofillManager> autofill_manager( 253 std::unique_ptr<AutofillManager> autofill_manager(
250 new MockAutofillManager(this, client)); 254 new MockAutofillManager(this, client));
251 SetAutofillManager(std::move(autofill_manager)); 255 SetAutofillManager(std::move(autofill_manager));
252 } 256 }
253 ~TestContentAutofillDriver() override {} 257 ~TestContentAutofillDriver() override {}
254 258
255 virtual MockAutofillManager* mock_autofill_manager() { 259 virtual MockAutofillManager* mock_autofill_manager() {
256 return static_cast<MockAutofillManager*>(autofill_manager()); 260 return static_cast<MockAutofillManager*>(autofill_manager());
257 } 261 }
258 262
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 488
485 content::NavigationEntry* entry = 489 content::NavigationEntry* entry =
486 web_contents()->GetController().GetVisibleEntry(); 490 web_contents()->GetController().GetVisibleEntry();
487 ASSERT_TRUE(entry); 491 ASSERT_TRUE(entry);
488 EXPECT_EQ(url, entry->GetURL()); 492 EXPECT_EQ(url, entry->GetURL());
489 EXPECT_FALSE(!!(entry->GetSSL().content_status & 493 EXPECT_FALSE(!!(entry->GetSSL().content_status &
490 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP)); 494 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP));
491 } 495 }
492 496
493 } // namespace autofill 497 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/browser/content_autofill_driver_factory.cc ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698