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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_view_tester.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
11 #include "components/autofill/core/browser/dialog_section.h" 12 #include "components/autofill/core/browser/dialog_section.h"
12 #include "components/autofill/core/browser/field_types.h" 13 #include "components/autofill/core/browser/field_types.h"
13 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
14 15
15 namespace content { 16 namespace content {
16 class WebContents; 17 class WebContents;
17 } 18 }
18 19
19 namespace autofill { 20 namespace autofill {
20 21
21 class AutofillDialogView; 22 class AutofillDialogView;
22 23
23 // Functionality that helps to test an AutofillDialogView. 24 // Functionality that helps to test an AutofillDialogView.
24 class AutofillDialogViewTester { 25 class AutofillDialogViewTester {
25 public: 26 public:
26 // Gets a AutofillDialogViewTester for |view|. 27 // Gets a AutofillDialogViewTester for |view|.
27 static scoped_ptr<AutofillDialogViewTester> For(AutofillDialogView* view); 28 static std::unique_ptr<AutofillDialogViewTester> For(
29 AutofillDialogView* view);
28 30
29 virtual ~AutofillDialogViewTester() {} 31 virtual ~AutofillDialogViewTester() {}
30 32
31 // Simulates the user pressing 'Submit' to accept the dialog. 33 // Simulates the user pressing 'Submit' to accept the dialog.
32 virtual void SubmitForTesting() = 0; 34 virtual void SubmitForTesting() = 0;
33 35
34 // Simulates the user pressing 'Cancel' to abort the dialog. 36 // Simulates the user pressing 'Cancel' to abort the dialog.
35 virtual void CancelForTesting() = 0; 37 virtual void CancelForTesting() = 0;
36 38
37 // Returns the actual contents of the input of |type|. 39 // Returns the actual contents of the input of |type|.
(...skipping 13 matching lines...) Expand all
51 // Get the size of the entire view. 53 // Get the size of the entire view.
52 virtual gfx::Size GetSize() const = 0; 54 virtual gfx::Size GetSize() const = 0;
53 55
54 // Whether |section| is currently showing. 56 // Whether |section| is currently showing.
55 virtual bool IsShowingSection(DialogSection section) const = 0; 57 virtual bool IsShowingSection(DialogSection section) const = 0;
56 }; 58 };
57 59
58 } // namespace autofill 60 } // namespace autofill
59 61
60 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_ 62 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698