Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: chrome/browser/media_galleries/media_galleries_dialog_controller_test_util.cc

Issue 318733003: Use the media galleries controller interface for the scan result dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698