NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / media_galleries / media_galleries_dialog_controller_mock.cc
blobb455811e7a85ab9a96c85645d624f4cad6db5163
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.
5 #include "chrome/browser/media_galleries/media_galleries_dialog_controller_mock.h"
7 #include "base/bind.h"
8 #include "base/bind_helpers.h"
10 using ::testing::Return;
12 namespace {
13 MediaGalleriesDialog* NullDialog(MediaGalleriesDialogController*) {
14 return NULL;
17 } // namespace
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()));
31 MediaGalleriesDialogControllerMock::~MediaGalleriesDialogControllerMock() {