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 "components/storage_monitor/mock_removable_storage_observer.h" 6 7namespace storage_monitor { 8 9MockRemovableStorageObserver::MockRemovableStorageObserver() 10 : attach_calls_(0), detach_calls_(0) { 11} 12 13MockRemovableStorageObserver::~MockRemovableStorageObserver() { 14} 15 16void MockRemovableStorageObserver::OnRemovableStorageAttached( 17 const StorageInfo& info) { 18 attach_calls_++; 19 last_attached_ = info; 20} 21 22void MockRemovableStorageObserver::OnRemovableStorageDetached( 23 const StorageInfo& info) { 24 detach_calls_++; 25 last_detached_ = info; 26} 27 28} // namespace storage_monitor 29