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. 4 5#include "chrome/browser/media_galleries/media_galleries_dialog_controller_test_util.h" 6 7MockMediaGalleriesDialog::MockMediaGalleriesDialog( 8 const DialogDestroyedCallback& callback) 9 : update_count_(0), 10 dialog_destroyed_callback_(callback) { 11} 12 13MockMediaGalleriesDialog::~MockMediaGalleriesDialog() { 14 dialog_destroyed_callback_.Run(update_count_); 15} 16 17void MockMediaGalleriesDialog::UpdateGalleries() { 18 update_count_++; 19} 20 21int MockMediaGalleriesDialog::update_count() const { 22 return update_count_; 23} 24 25void MockMediaGalleriesDialog::AcceptDialogForTesting() { 26 NOTREACHED(); 27} 28