OLD | NEW |
(Empty) | |
| 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 |
| 7 MockMediaGalleriesDialog::MockMediaGalleriesDialog( |
| 8 const DialogDestroyedCallback& callback) |
| 9 : update_count_(0), |
| 10 dialog_destroyed_callback_(callback) { |
| 11 } |
| 12 |
| 13 MockMediaGalleriesDialog::~MockMediaGalleriesDialog() { |
| 14 dialog_destroyed_callback_.Run(update_count_); |
| 15 } |
| 16 |
| 17 void MockMediaGalleriesDialog::UpdateGalleries() { |
| 18 update_count_++; |
| 19 } |
| 20 |
| 21 int MockMediaGalleriesDialog::update_count() { |
| 22 return update_count_; |
| 23 } |
| 24 |
| 25 void MockMediaGalleriesDialog::AcceptDialogForTesting() { |
| 26 NOTREACHED(); |
| 27 } |
OLD | NEW |