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

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

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 (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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return &mock_validator_; 277 return &mock_validator_;
278 } 278 }
279 279
280 void OpenTabWithUrl(const GURL& url) override { 280 void OpenTabWithUrl(const GURL& url) override {
281 open_tab_url_ = url; 281 open_tab_url_ = url;
282 } 282 }
283 283
284 void ShowNewCreditCardBubble( 284 void ShowNewCreditCardBubble(
285 scoped_ptr<CreditCard> new_card, 285 scoped_ptr<CreditCard> new_card,
286 scoped_ptr<AutofillProfile> billing_profile) override { 286 scoped_ptr<AutofillProfile> billing_profile) override {
287 mock_new_card_bubble_controller_->Show(new_card.Pass(), 287 mock_new_card_bubble_controller_->Show(std::move(new_card),
288 billing_profile.Pass()); 288 std::move(billing_profile));
289 } 289 }
290 290
291 // AutofillDialogControllerImpl calls this method before showing the dialog 291 // AutofillDialogControllerImpl calls this method before showing the dialog
292 // window. 292 // window.
293 void SubmitButtonDelayBegin() override { 293 void SubmitButtonDelayBegin() override {
294 // Do not delay enabling the submit button in testing. 294 // Do not delay enabling the submit button in testing.
295 submit_button_delay_count_++; 295 submit_button_delay_count_++;
296 } 296 }
297 297
298 private: 298 private:
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 SECTION_SHIPPING, 1831 SECTION_SHIPPING,
1832 NAME_FULL, 1832 NAME_FULL,
1833 gfx::NativeView(), 1833 gfx::NativeView(),
1834 gfx::Rect(), 1834 gfx::Rect(),
1835 profile.GetRawInfo(NAME_FULL).substr(0, 1), 1835 profile.GetRawInfo(NAME_FULL).substr(0, 1),
1836 true); 1836 true);
1837 EXPECT_EQ(NAME_FULL, controller()->popup_input_type()); 1837 EXPECT_EQ(NAME_FULL, controller()->popup_input_type());
1838 } 1838 }
1839 1839
1840 } // namespace autofill 1840 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698