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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 using storage_monitor::TestVolumeMountWatcherWin; | 40 using storage_monitor::TestVolumeMountWatcherWin; |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 typedef std::map<MediaGalleryPrefId, MediaFileSystemInfo> FSInfoMap; | 44 typedef std::map<MediaGalleryPrefId, MediaFileSystemInfo> FSInfoMap; |
45 | 45 |
46 void GetGalleryInfoCallback( | 46 void GetGalleryInfoCallback( |
47 FSInfoMap* results, | 47 FSInfoMap* results, |
48 const std::vector<MediaFileSystemInfo>& file_systems) { | 48 const std::vector<MediaFileSystemInfo>& file_systems) { |
49 for (size_t i = 0; i < file_systems.size(); ++i) { | 49 for (size_t i = 0; i < file_systems.size(); ++i) { |
50 ASSERT_FALSE(ContainsKey(*results, file_systems[i].pref_id)); | 50 ASSERT_FALSE(base::ContainsKey(*results, file_systems[i].pref_id)); |
51 (*results)[file_systems[i].pref_id] = file_systems[i]; | 51 (*results)[file_systems[i].pref_id] = file_systems[i]; |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
56 | 56 |
57 class MTPDeviceDelegateImplWinTest : public ChromeRenderViewHostTestHarness { | 57 class MTPDeviceDelegateImplWinTest : public ChromeRenderViewHostTestHarness { |
58 protected: | 58 protected: |
59 void SetUp() override; | 59 void SetUp() override; |
60 void TearDown() override; | 60 void TearDown() override; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 for (FSInfoMap::iterator i = results.begin(); i != results.end(); ++i) { | 175 for (FSInfoMap::iterator i = results.begin(); i != results.end(); ++i) { |
176 MediaFileSystemInfo info = i->second; | 176 MediaFileSystemInfo info = i->second; |
177 if (info.path == location) { | 177 if (info.path == location) { |
178 CheckGalleryInfo(info, location.LossyDisplayName(), location, true, true); | 178 CheckGalleryInfo(info, location.LossyDisplayName(), location, true, true); |
179 checked = true; | 179 checked = true; |
180 break; | 180 break; |
181 } | 181 } |
182 } | 182 } |
183 EXPECT_TRUE(checked); | 183 EXPECT_TRUE(checked); |
184 } | 184 } |
OLD | NEW |