[go: nahoru, domu]

blob: f043391ca7b5bddd1229eddfd6837d130d236fb2 [file] [log] [blame]
// Copyright 2014 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 "components/storage_monitor/mock_removable_storage_observer.h"
namespace storage_monitor {
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;
}
} // namespace storage_monitor