Home | History | Annotate | Download | only in media_galleries
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
      6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
      7 
      8 #include "chrome/browser/media_galleries/media_galleries_dialog_controller.h"
      9 #include "testing/gmock/include/gmock/gmock.h"
     10 
     11 namespace chrome {
     12 
     13 class MediaGalleriesDialogControllerMock
     14     : public MediaGalleriesDialogController {
     15  public:
     16   explicit MediaGalleriesDialogControllerMock(
     17       const extensions::Extension& extension);
     18   virtual ~MediaGalleriesDialogControllerMock();
     19 
     20   MOCK_CONST_METHOD0(GetHeader, string16());
     21   MOCK_CONST_METHOD0(GetSubtext, string16());
     22   MOCK_CONST_METHOD0(HasPermittedGalleries, bool());
     23   MOCK_CONST_METHOD0(AttachedPermissions, GalleryPermissionsVector());
     24   MOCK_CONST_METHOD0(UnattachedPermissions, GalleryPermissionsVector());
     25   MOCK_METHOD0(web_contents, content::WebContents*());
     26 
     27   MOCK_METHOD0(OnAddFolderClicked, void());
     28   MOCK_METHOD2(DidToggleGalleryId, void(MediaGalleryPrefId pref_id,
     29                                         bool enabled));
     30   MOCK_METHOD1(DialogFinished, void(bool));
     31 };
     32 
     33 }  // namespace chrome
     34 
     35 #endif  // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
     36