Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / media_galleries / media_galleries_dialog_controller_mock.cc
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 #include "chrome/browser/media_galleries/media_galleries_dialog_controller_mock.h"
6
7 #include "base/bind.h"
8 #include "base/bind_helpers.h"
9
10 using ::testing::Return;
11
12 namespace {
13 MediaGalleriesDialog* NullDialog(MediaGalleriesDialogController*) {
14   return NULL;
15 }
16
17 }  // namespace
18
19 MediaGalleriesDialogControllerMock::MediaGalleriesDialogControllerMock(
20     const extensions::Extension& extension)
21     : MediaGalleriesDialogController(
22           extension, NULL,
23           base::Bind(&NullDialog),
24           base::Bind(&base::DoNothing)) {
25   EXPECT_CALL(*this, GetHeader()).
26       WillRepeatedly(Return(base::string16()));
27   EXPECT_CALL(*this, GetSubtext()).
28       WillRepeatedly(Return(base::string16()));
29 }
30
31 MediaGalleriesDialogControllerMock::~MediaGalleriesDialogControllerMock() {
32 }