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

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

Issue 85863003: Change DetailOutputMap to FieldValueMap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" 9 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); 51 MOCK_METHOD1(EditClickedForSection, void(DialogSection section));
52 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); 52 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section));
53 MOCK_CONST_METHOD1(IconsForFields, FieldIconMap(const FieldValueMap&)); 53 MOCK_CONST_METHOD1(IconsForFields, FieldIconMap(const FieldValueMap&));
54 MOCK_CONST_METHOD1(FieldControlsIcons, bool(ServerFieldType)); 54 MOCK_CONST_METHOD1(FieldControlsIcons, bool(ServerFieldType));
55 MOCK_CONST_METHOD1(TooltipForField, base::string16(ServerFieldType)); 55 MOCK_CONST_METHOD1(TooltipForField, base::string16(ServerFieldType));
56 MOCK_METHOD2(InputIsEditable, bool(const DetailInput& input, 56 MOCK_METHOD2(InputIsEditable, bool(const DetailInput& input,
57 DialogSection section)); 57 DialogSection section));
58 MOCK_METHOD3(InputValidityMessage, 58 MOCK_METHOD3(InputValidityMessage,
59 string16(DialogSection, ServerFieldType, const string16&)); 59 string16(DialogSection, ServerFieldType, const string16&));
60 MOCK_METHOD2(InputsAreValid, ValidityMessages(DialogSection, 60 MOCK_METHOD2(InputsAreValid, ValidityMessages(DialogSection,
61 const DetailOutputMap&)); 61 const FieldValueMap&));
62 MOCK_METHOD6(UserEditedOrActivatedInput, void(DialogSection, 62 MOCK_METHOD6(UserEditedOrActivatedInput, void(DialogSection,
63 const DetailInput*, 63 ServerFieldType,
64 gfx::NativeView, 64 gfx::NativeView,
65 const gfx::Rect&, 65 const gfx::Rect&,
66 const string16&, 66 const string16&,
67 bool was_edit)); 67 bool was_edit));
68 MOCK_METHOD1(HandleKeyPressEventInInput, 68 MOCK_METHOD1(HandleKeyPressEventInInput,
69 bool(const content::NativeWebKeyboardEvent& event)); 69 bool(const content::NativeWebKeyboardEvent& event));
70 MOCK_METHOD0(FocusMoved, void()); 70 MOCK_METHOD0(FocusMoved, void());
71 MOCK_CONST_METHOD0(ShouldShowErrorBubble, bool()); 71 MOCK_CONST_METHOD0(ShouldShowErrorBubble, bool());
72 MOCK_METHOD0(ViewClosed, void()); 72 MOCK_METHOD0(ViewClosed, void());
73 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); 73 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>());
(...skipping 18 matching lines...) Expand all
92 DetailInputs default_inputs_; 92 DetailInputs default_inputs_;
93 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. 93 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC.
94 std::vector<gfx::Range> range_; 94 std::vector<gfx::Range> range_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(MockAutofillDialogViewDelegate); 96 DISALLOW_COPY_AND_ASSIGN(MockAutofillDialogViewDelegate);
97 }; 97 };
98 98
99 } // namespace autofill 99 } // namespace autofill
100 100
101 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 101 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698