OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" | 5 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" |
6 | 6 |
7 namespace chrome { | |
8 | |
9 MockRemovableStorageObserver::MockRemovableStorageObserver() | 7 MockRemovableStorageObserver::MockRemovableStorageObserver() |
10 : attach_calls_(0), detach_calls_(0) { | 8 : attach_calls_(0), detach_calls_(0) { |
11 } | 9 } |
12 | 10 |
13 MockRemovableStorageObserver::~MockRemovableStorageObserver() { | 11 MockRemovableStorageObserver::~MockRemovableStorageObserver() { |
14 } | 12 } |
15 | 13 |
16 void MockRemovableStorageObserver::OnRemovableStorageAttached( | 14 void MockRemovableStorageObserver::OnRemovableStorageAttached( |
17 const StorageInfo& info) { | 15 const StorageInfo& info) { |
18 attach_calls_++; | 16 attach_calls_++; |
19 last_attached_ = info; | 17 last_attached_ = info; |
20 } | 18 } |
21 | 19 |
22 void MockRemovableStorageObserver::OnRemovableStorageDetached( | 20 void MockRemovableStorageObserver::OnRemovableStorageDetached( |
23 const StorageInfo& info) { | 21 const StorageInfo& info) { |
24 detach_calls_++; | 22 detach_calls_++; |
25 last_detached_ = info; | 23 last_detached_ = info; |
26 } | 24 } |
27 | |
28 } // namespace chrome | |
OLD | NEW |