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