Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / media_galleries / media_galleries_dialog_controller_test_util.cc
blob368997e9c0a7ae1e26e9c7ac6a952cb0ac1a6ac8
1 // Copyright 2014 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_test_util.h"
7 MockMediaGalleriesDialog::MockMediaGalleriesDialog(
8 const DialogDestroyedCallback& callback)
9 : update_count_(0),
10 dialog_destroyed_callback_(callback) {
13 MockMediaGalleriesDialog::~MockMediaGalleriesDialog() {
14 dialog_destroyed_callback_.Run(update_count_);
17 void MockMediaGalleriesDialog::UpdateGalleries() {
18 update_count_++;
21 int MockMediaGalleriesDialog::update_count() const {
22 return update_count_;
25 void MockMediaGalleriesDialog::AcceptDialogForTesting() {
26 NOTREACHED();