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

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

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 | Annotate | Revision Log
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 "chrome/browser/media_galleries/media_galleries_dialog_controller.h" 8 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace chrome {
12
13 class MediaGalleriesDialogControllerMock 11 class MediaGalleriesDialogControllerMock
14 : public MediaGalleriesDialogController { 12 : public MediaGalleriesDialogController {
15 public: 13 public:
16 explicit MediaGalleriesDialogControllerMock( 14 explicit MediaGalleriesDialogControllerMock(
17 const extensions::Extension& extension); 15 const extensions::Extension& extension);
18 virtual ~MediaGalleriesDialogControllerMock(); 16 virtual ~MediaGalleriesDialogControllerMock();
19 17
20 MOCK_CONST_METHOD0(GetHeader, string16()); 18 MOCK_CONST_METHOD0(GetHeader, string16());
21 MOCK_CONST_METHOD0(GetSubtext, string16()); 19 MOCK_CONST_METHOD0(GetSubtext, string16());
22 MOCK_CONST_METHOD0(HasPermittedGalleries, bool()); 20 MOCK_CONST_METHOD0(HasPermittedGalleries, bool());
23 MOCK_CONST_METHOD0(AttachedPermissions, GalleryPermissionsVector()); 21 MOCK_CONST_METHOD0(AttachedPermissions, GalleryPermissionsVector());
24 MOCK_CONST_METHOD0(UnattachedPermissions, GalleryPermissionsVector()); 22 MOCK_CONST_METHOD0(UnattachedPermissions, GalleryPermissionsVector());
25 MOCK_METHOD0(web_contents, content::WebContents*()); 23 MOCK_METHOD0(web_contents, content::WebContents*());
26 24
27 MOCK_METHOD0(OnAddFolderClicked, void()); 25 MOCK_METHOD0(OnAddFolderClicked, void());
28 MOCK_METHOD2(DidToggleGalleryId, void(MediaGalleryPrefId pref_id, 26 MOCK_METHOD2(DidToggleGalleryId, void(MediaGalleryPrefId pref_id,
29 bool enabled)); 27 bool enabled));
30 MOCK_METHOD1(DialogFinished, void(bool)); 28 MOCK_METHOD1(DialogFinished, void(bool));
31 }; 29 };
32 30
33 } // namespace chrome
34
35 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK _H_ 31 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698