Make pop-up menus more easily dismissable.
[chromium-blink-merge.git] / components / storage_monitor / mock_removable_storage_observer.cc
blobf043391ca7b5bddd1229eddfd6837d130d236fb2
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 "components/storage_monitor/mock_removable_storage_observer.h"
7 namespace storage_monitor {
9 MockRemovableStorageObserver::MockRemovableStorageObserver()
10 : attach_calls_(0), detach_calls_(0) {
13 MockRemovableStorageObserver::~MockRemovableStorageObserver() {
16 void MockRemovableStorageObserver::OnRemovableStorageAttached(
17 const StorageInfo& info) {
18 attach_calls_++;
19 last_attached_ = info;
22 void MockRemovableStorageObserver::OnRemovableStorageDetached(
23 const StorageInfo& info) {
24 detach_calls_++;
25 last_detached_ = info;
28 } // namespace storage_monitor