Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / storage_monitor / mock_removable_storage_observer.cc
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.
4
5 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h"
6
7 MockRemovableStorageObserver::MockRemovableStorageObserver()
8     : attach_calls_(0), detach_calls_(0) {
9 }
10
11 MockRemovableStorageObserver::~MockRemovableStorageObserver() {
12 }
13
14 void MockRemovableStorageObserver::OnRemovableStorageAttached(
15     const StorageInfo& info) {
16   attach_calls_++;
17   last_attached_ = info;
18 }
19
20 void MockRemovableStorageObserver::OnRemovableStorageDetached(
21     const StorageInfo& info) {
22   detach_calls_++;
23   last_detached_ = info;
24 }