| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // MTPDeviceObjectEnumerator unit tests. | 5 // MTPDeviceObjectEnumerator unit tests. |
| 6 | 6 |
| 7 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" | 7 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" |
| 8 | 8 |
| 9 #include <ctime> | 9 #include <ctime> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" | 14 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace chrome { | |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 struct MTPDeviceObjectEntryData { | 19 struct MTPDeviceObjectEntryData { |
| 21 // Friendly name of the object, e.g. "IMG_9911.jpeg". | 20 // Friendly name of the object, e.g. "IMG_9911.jpeg". |
| 22 string16 name; | 21 string16 name; |
| 23 | 22 |
| 24 // The object identifier, e.g. "o299". | 23 // The object identifier, e.g. "o299". |
| 25 string16 object_id; | 24 string16 object_id; |
| 26 | 25 |
| 27 // True if the current object is a directory/folder/album content type. | 26 // True if the current object is a directory/folder/album content type. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 enumerator.LastModifiedTime().ToTimeT()); | 83 enumerator.LastModifiedTime().ToTimeT()); |
| 85 } | 84 } |
| 86 TestNextEntryIsEmpty(&enumerator); | 85 TestNextEntryIsEmpty(&enumerator); |
| 87 TestNextEntryIsEmpty(&enumerator); | 86 TestNextEntryIsEmpty(&enumerator); |
| 88 TestEnumeratorIsEmpty(&enumerator); | 87 TestEnumeratorIsEmpty(&enumerator); |
| 89 TestNextEntryIsEmpty(&enumerator); | 88 TestNextEntryIsEmpty(&enumerator); |
| 90 TestEnumeratorIsEmpty(&enumerator); | 89 TestEnumeratorIsEmpty(&enumerator); |
| 91 } | 90 } |
| 92 | 91 |
| 93 } // namespace | 92 } // namespace |
| 94 } // namespace chrome | |
| OLD | NEW |