Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/chromeos/cros/mock_mount_library.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.cc ('k') | chrome/browser/chromeos/cros/mount_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698