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

Unified Diff: chrome/browser/media_gallery/media_galleries_dialog_controller_mock.h

Issue 10854150: Cocoa: Media gallery dialog unit test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_gallery/media_galleries_dialog_controller_mock.h
diff --git a/chrome/browser/media_gallery/media_galleries_dialog_controller_mock.h b/chrome/browser/media_gallery/media_galleries_dialog_controller_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..e4643b245182ecf54aa1b1d08008f5319e7054ed
--- /dev/null
+++ b/chrome/browser/media_gallery/media_galleries_dialog_controller_mock.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
+#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_
+
+#include "chrome/browser/media_gallery/media_galleries_dialog_controller.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chrome {
+
+class MediaGalleriesDialogControllerMock
+ : public MediaGalleriesDialogController {
+ public:
+ MediaGalleriesDialogControllerMock();
+ virtual ~MediaGalleriesDialogControllerMock();
+
+ MOCK_CONST_METHOD0(GetHeader, string16());
+ MOCK_CONST_METHOD0(GetSubtext, string16());
+ MOCK_CONST_METHOD0(HasPermittedGalleries, bool());
+ MOCK_CONST_METHOD0(permissions, const KnownGalleryPermissions&());
+
+ MOCK_METHOD0(OnAddFolderClicked, void());
+ MOCK_METHOD2(DidToggleGallery, void(const MediaGalleryPrefInfo* pref_info,
+ bool enabled));
+};
+
+} // namespace
+
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_MOCK_H_

Powered by Google App Engine
This is Rietveld 408576698