OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // MediaFileSystemRegistry unit tests. | 5 // MediaFileSystemRegistry unit tests. |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 const base::FilePath& location, | 325 const base::FilePath& location, |
326 bool removable, | 326 bool removable, |
327 bool media_device); | 327 bool media_device); |
328 | 328 |
329 std::vector<MediaFileSystemInfo> GetAutoAddedGalleries( | 329 std::vector<MediaFileSystemInfo> GetAutoAddedGalleries( |
330 ProfileState* profile_state); | 330 ProfileState* profile_state); |
331 | 331 |
332 void ProcessAttach(const std::string& id, | 332 void ProcessAttach(const std::string& id, |
333 const string16& name, | 333 const string16& name, |
334 const base::FilePath::StringType& location) { | 334 const base::FilePath::StringType& location) { |
335 StorageInfo info(id, string16(), location, name, string16(), string16(), 0); | 335 StorageInfo info(id, location, name, base::string16(), base::string16(), 0); |
336 StorageMonitor::GetInstance()->receiver()->ProcessAttach(info); | 336 StorageMonitor::GetInstance()->receiver()->ProcessAttach(info); |
337 } | 337 } |
338 | 338 |
339 void ProcessDetach(const std::string& id) { | 339 void ProcessDetach(const std::string& id) { |
340 StorageMonitor::GetInstance()->receiver()->ProcessDetach(id); | 340 StorageMonitor::GetInstance()->receiver()->ProcessDetach(id); |
341 } | 341 } |
342 | 342 |
343 MediaFileSystemRegistry* registry() { | 343 MediaFileSystemRegistry* registry() { |
344 return test_file_system_context_->registry(); | 344 return test_file_system_context_->registry(); |
345 } | 345 } |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 ASSERT_TRUE(PathService::Get(chrome::DIR_USER_VIDEOS, &path)); | 1024 ASSERT_TRUE(PathService::Get(chrome::DIR_USER_VIDEOS, &path)); |
1025 profile_state->AddNameForAllCompare(path.BaseName().LossyDisplayName()); | 1025 profile_state->AddNameForAllCompare(path.BaseName().LossyDisplayName()); |
1026 | 1026 |
1027 profile_state->CheckGalleries("names-dir", one_expectation, auto_galleries); | 1027 profile_state->CheckGalleries("names-dir", one_expectation, auto_galleries); |
1028 } else { | 1028 } else { |
1029 profile_state->CheckGalleries("names", one_expectation, one_expectation); | 1029 profile_state->CheckGalleries("names", one_expectation, one_expectation); |
1030 } | 1030 } |
1031 } | 1031 } |
1032 | 1032 |
1033 } // namespace chrome | 1033 } // namespace chrome |
OLD | NEW |