Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / storage_monitor / mock_removable_storage_observer.cc
blobbf8e94068bb6371d324235babb17d1cc05527a21
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.
5 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h"
7 MockRemovableStorageObserver::MockRemovableStorageObserver()
8 : attach_calls_(0), detach_calls_(0) {
11 MockRemovableStorageObserver::~MockRemovableStorageObserver() {
14 void MockRemovableStorageObserver::OnRemovableStorageAttached(
15 const StorageInfo& info) {
16 attach_calls_++;
17 last_attached_ = info;
20 void MockRemovableStorageObserver::OnRemovableStorageDetached(
21 const StorageInfo& info) {
22 detach_calls_++;
23 last_detached_ = info;