// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/media_galleries/media_galleries_dialog_controller_test_util.h" MockMediaGalleriesDialog::MockMediaGalleriesDialog( const DialogDestroyedCallback& callback) : update_count_(0), dialog_destroyed_callback_(callback) { } MockMediaGalleriesDialog::~MockMediaGalleriesDialog() { dialog_destroyed_callback_.Run(update_count_); } void MockMediaGalleriesDialog::UpdateGalleries() { update_count_++; } int MockMediaGalleriesDialog::update_count() const { return update_count_; } void MockMediaGalleriesDialog::AcceptDialogForTesting() { NOTREACHED(); }