OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // as construction. | 107 // as construction. |
108 test::TestStorageMonitor::RemoveSingleton(); | 108 test::TestStorageMonitor::RemoveSingleton(); |
109 | 109 |
110 ChromeRenderViewHostTestHarness::TearDown(); | 110 ChromeRenderViewHostTestHarness::TearDown(); |
111 } | 111 } |
112 | 112 |
113 void MTPDeviceDelegateImplWinTest::ProcessAttach( | 113 void MTPDeviceDelegateImplWinTest::ProcessAttach( |
114 const std::string& id, | 114 const std::string& id, |
115 const string16& label, | 115 const string16& label, |
116 const base::FilePath::StringType& location) { | 116 const base::FilePath::StringType& location) { |
117 StorageInfo info(id, string16(), location, label, string16(), string16(), 0); | 117 StorageInfo info(id, location, label, base::string16(), base::string16(), 0); |
118 monitor_->receiver()->ProcessAttach(info); | 118 monitor_->receiver()->ProcessAttach(info); |
119 } | 119 } |
120 | 120 |
121 std::string MTPDeviceDelegateImplWinTest::AttachDevice( | 121 std::string MTPDeviceDelegateImplWinTest::AttachDevice( |
122 StorageInfo::Type type, | 122 StorageInfo::Type type, |
123 const std::string& unique_id, | 123 const std::string& unique_id, |
124 const base::FilePath& location) { | 124 const base::FilePath& location) { |
125 std::string device_id = StorageInfo::MakeDeviceId(type, unique_id); | 125 std::string device_id = StorageInfo::MakeDeviceId(type, unique_id); |
126 DCHECK(StorageInfo::IsRemovableDevice(device_id)); | 126 DCHECK(StorageInfo::IsRemovableDevice(device_id)); |
127 string16 label = location.LossyDisplayName(); | 127 string16 label = location.LossyDisplayName(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 if (info.path == location) { | 170 if (info.path == location) { |
171 CheckGalleryInfo(info, location.LossyDisplayName(), location, true, true); | 171 CheckGalleryInfo(info, location.LossyDisplayName(), location, true, true); |
172 checked = true; | 172 checked = true; |
173 break; | 173 break; |
174 } | 174 } |
175 } | 175 } |
176 EXPECT_TRUE(checked); | 176 EXPECT_TRUE(checked); |
177 } | 177 } |
178 | 178 |
179 } // namespace chrome | 179 } // namespace chrome |
OLD | NEW |