This source file includes following definitions.
- NullDialog
#include "chrome/browser/media_galleries/media_galleries_dialog_controller_mock.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
using ::testing::Return;
namespace {
MediaGalleriesDialog* NullDialog(MediaGalleriesDialogController*) {
return NULL;
}
}
MediaGalleriesDialogControllerMock::MediaGalleriesDialogControllerMock(
const extensions::Extension& extension)
: MediaGalleriesDialogController(
extension, NULL,
base::Bind(&NullDialog),
base::Bind(&base::DoNothing)) {
EXPECT_CALL(*this, GetHeader()).
WillRepeatedly(Return(base::string16()));
EXPECT_CALL(*this, GetSubtext()).
WillRepeatedly(Return(base::string16()));
}
MediaGalleriesDialogControllerMock::~MediaGalleriesDialogControllerMock() {
}