OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/cros/mock_mount_library.h" | 5 #include "chrome/browser/chromeos/cros/mock_mount_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
| 14 using content::BrowserThread; |
14 using testing::_; | 15 using testing::_; |
15 using testing::AnyNumber; | 16 using testing::AnyNumber; |
16 using testing::Invoke; | 17 using testing::Invoke; |
17 using testing::ReturnRef; | 18 using testing::ReturnRef; |
18 | 19 |
19 const char* kTestSystemPath = "/this/system/path"; | 20 const char* kTestSystemPath = "/this/system/path"; |
20 const char* kTestSystemPathPrefix = "/this/system"; | 21 const char* kTestSystemPathPrefix = "/this/system"; |
21 const char* kTestDevicePath = "/this/device/path"; | 22 const char* kTestDevicePath = "/this/device/path"; |
22 const char* kTestMountPath = "/media/foofoo"; | 23 const char* kTestMountPath = "/media/foofoo"; |
23 const char* kTestFilePath = "/this/file/path"; | 24 const char* kTestFilePath = "/this/file/path"; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 void MockMountLibrary::UpdateDeviceChanged(MountLibraryEventType evt, | 160 void MockMountLibrary::UpdateDeviceChanged(MountLibraryEventType evt, |
160 const std::string& path) { | 161 const std::string& path) { |
161 // Make sure we run on UI thread. | 162 // Make sure we run on UI thread. |
162 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 163 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
163 | 164 |
164 FOR_EACH_OBSERVER(Observer, observers_, DeviceChanged(evt, path)); | 165 FOR_EACH_OBSERVER(Observer, observers_, DeviceChanged(evt, path)); |
165 } | 166 } |
166 | 167 |
167 } // namespace chromeos | 168 } // namespace chromeos |
OLD | NEW |