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

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

Issue 11369253: Fix crash when programatically closing media gallery dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
7 7
8 #include "chrome/browser/media_gallery/media_galleries_dialog_controller.h" 8 #include "chrome/browser/media_gallery/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 { 11 namespace chrome {
12 12
13 class MediaGalleriesDialogControllerMock 13 class MediaGalleriesDialogControllerMock
14 : public MediaGalleriesDialogController { 14 : public MediaGalleriesDialogController {
15 public: 15 public:
16 MediaGalleriesDialogControllerMock(); 16 MediaGalleriesDialogControllerMock();
17 virtual ~MediaGalleriesDialogControllerMock(); 17 virtual ~MediaGalleriesDialogControllerMock();
18 18
19 MOCK_CONST_METHOD0(GetHeader, string16()); 19 MOCK_CONST_METHOD0(GetHeader, string16());
20 MOCK_CONST_METHOD0(GetSubtext, string16()); 20 MOCK_CONST_METHOD0(GetSubtext, string16());
21 MOCK_CONST_METHOD0(HasPermittedGalleries, bool()); 21 MOCK_CONST_METHOD0(HasPermittedGalleries, bool());
22 MOCK_CONST_METHOD0(permissions, const KnownGalleryPermissions&()); 22 MOCK_CONST_METHOD0(permissions, const KnownGalleryPermissions&());
23 MOCK_CONST_METHOD0(web_contents, content::WebContents*());
23 24
24 MOCK_METHOD0(OnAddFolderClicked, void()); 25 MOCK_METHOD0(OnAddFolderClicked, void());
25 MOCK_METHOD2(DidToggleGallery, void(const MediaGalleryPrefInfo* pref_info, 26 MOCK_METHOD2(DidToggleGallery, void(const MediaGalleryPrefInfo* pref_info,
26 bool enabled)); 27 bool enabled));
28 MOCK_METHOD1(DialogFinished, void(bool));
27 }; 29 };
28 30
29 } // namespace 31 } // namespace
30 32
31 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H _ 33 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698