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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_dialog_controller_mock.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
7 7
8 #include <stddef.h>
9
8 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h" 10 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h"
9 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
10 12
11 class MediaGalleriesDialogControllerMock 13 class MediaGalleriesDialogControllerMock
12 : public MediaGalleriesDialogController { 14 : public MediaGalleriesDialogController {
13 public: 15 public:
14 explicit MediaGalleriesDialogControllerMock(); 16 explicit MediaGalleriesDialogControllerMock();
15 virtual ~MediaGalleriesDialogControllerMock(); 17 virtual ~MediaGalleriesDialogControllerMock();
16 18
17 MOCK_CONST_METHOD0(GetHeader, base::string16()); 19 MOCK_CONST_METHOD0(GetHeader, base::string16());
18 MOCK_CONST_METHOD0(GetSubtext, base::string16()); 20 MOCK_CONST_METHOD0(GetSubtext, base::string16());
19 MOCK_CONST_METHOD0(IsAcceptAllowed, bool()); 21 MOCK_CONST_METHOD0(IsAcceptAllowed, bool());
20 MOCK_CONST_METHOD1(ShouldShowFolderViewer, bool(const Entry&)); 22 MOCK_CONST_METHOD1(ShouldShowFolderViewer, bool(const Entry&));
21 MOCK_CONST_METHOD0(GetSectionHeaders, std::vector<base::string16>()); 23 MOCK_CONST_METHOD0(GetSectionHeaders, std::vector<base::string16>());
22 MOCK_CONST_METHOD1(GetSectionEntries, Entries(size_t)); 24 MOCK_CONST_METHOD1(GetSectionEntries, Entries(size_t));
23 MOCK_CONST_METHOD0(GetAuxiliaryButtonText, base::string16()); 25 MOCK_CONST_METHOD0(GetAuxiliaryButtonText, base::string16());
24 MOCK_METHOD0(DidClickAuxiliaryButton, void()); 26 MOCK_METHOD0(DidClickAuxiliaryButton, void());
25 27
26 MOCK_METHOD2(DidToggleEntry, void(MediaGalleryPrefId id, bool selected)); 28 MOCK_METHOD2(DidToggleEntry, void(MediaGalleryPrefId id, bool selected));
27 MOCK_METHOD1(DidClickOpenFolderViewer, void(MediaGalleryPrefId id)); 29 MOCK_METHOD1(DidClickOpenFolderViewer, void(MediaGalleryPrefId id));
28 MOCK_METHOD1(DidForgetEntry, void(MediaGalleryPrefId id)); 30 MOCK_METHOD1(DidForgetEntry, void(MediaGalleryPrefId id));
29 MOCK_CONST_METHOD0(GetAcceptButtonText, base::string16()); 31 MOCK_CONST_METHOD0(GetAcceptButtonText, base::string16());
30 MOCK_METHOD1(DialogFinished, void(bool)); 32 MOCK_METHOD1(DialogFinished, void(bool));
31 MOCK_METHOD1(GetContextMenu, ui::MenuModel*(MediaGalleryPrefId id)); 33 MOCK_METHOD1(GetContextMenu, ui::MenuModel*(MediaGalleryPrefId id));
32 MOCK_METHOD0(WebContents, content::WebContents*()); 34 MOCK_METHOD0(WebContents, content::WebContents*());
33 }; 35 };
34 36
35 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK _H_ 37 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698