blob: bf8e94068bb6371d324235babb17d1cc05527a21 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/storage_monitor/mock_removable_storage_observer.h"
MockRemovableStorageObserver::MockRemovableStorageObserver()
: attach_calls_(0), detach_calls_(0) {
}
MockRemovableStorageObserver::~MockRemovableStorageObserver() {
}
void MockRemovableStorageObserver::OnRemovableStorageAttached(
const StorageInfo& info) {
attach_calls_++;
last_attached_ = info;
}
void MockRemovableStorageObserver::OnRemovableStorageDetached(
const StorageInfo& info) {
detach_calls_++;
last_detached_ = info;
}