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 #ifndef CHROME_BROWSER_STORAGE_MONITOR_MOCK_REMOVABLE_STORAGE_OBSERVER_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_MOCK_REMOVABLE_STORAGE_OBSERVER_H_
8 #include "chrome/browser/storage_monitor/removable_storage_observer.h"
9 #include "chrome/browser/storage_monitor/storage_info.h"
11 class MockRemovableStorageObserver : public RemovableStorageObserver {
13 MockRemovableStorageObserver();
14 virtual ~MockRemovableStorageObserver();
16 virtual void OnRemovableStorageAttached(const StorageInfo& info) OVERRIDE;
18 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE;
20 int attach_calls() { return attach_calls_; }
22 int detach_calls() { return detach_calls_; }
24 const StorageInfo& last_attached() {
25 return last_attached_;
28 const StorageInfo& last_detached() {
29 return last_detached_;
35 StorageInfo last_attached_;
36 StorageInfo last_detached_;
39 #endif // CHROME_BROWSER_STORAGE_MONITOR_MOCK_REMOVABLE_STORAGE_OBSERVER_H_