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
) {
19 last_attached_
= info
;
22 void MockRemovableStorageObserver::OnRemovableStorageDetached(
23 const StorageInfo
& info
) {
25 last_detached_
= info
;
28 } // namespace storage_monitor