| 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 #include <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 8 #include "base/macros.h" |
| 5 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" | 9 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 11 |
| 8 namespace { | 12 namespace { |
| 9 | 13 |
| 10 struct MtpFileEntryData { | 14 struct MtpFileEntryData { |
| 11 const char* const name; | 15 const char* const name; |
| 12 int64 size; | 16 int64_t size; |
| 13 bool is_directory; | 17 bool is_directory; |
| 14 time_t modification_time; | 18 time_t modification_time; |
| 15 }; | 19 }; |
| 16 | 20 |
| 17 const MtpFileEntryData kTestCases[] = { | 21 const MtpFileEntryData kTestCases[] = { |
| 18 { "Foo", 123, false, 321 }, | 22 { "Foo", 123, false, 321 }, |
| 19 { "Bar", 234, true, 432 }, | 23 { "Bar", 234, true, 432 }, |
| 20 { "Baaz", 345, false, 543 }, | 24 { "Baaz", 345, false, 543 }, |
| 21 }; | 25 }; |
| 22 | 26 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 enumerator.LastModifiedTime().ToTimeT()); | 68 enumerator.LastModifiedTime().ToTimeT()); |
| 65 } | 69 } |
| 66 TestNextEntryIsEmpty(&enumerator); | 70 TestNextEntryIsEmpty(&enumerator); |
| 67 TestNextEntryIsEmpty(&enumerator); | 71 TestNextEntryIsEmpty(&enumerator); |
| 68 TestEnumeratorIsEmpty(&enumerator); | 72 TestEnumeratorIsEmpty(&enumerator); |
| 69 TestNextEntryIsEmpty(&enumerator); | 73 TestNextEntryIsEmpty(&enumerator); |
| 70 TestEnumeratorIsEmpty(&enumerator); | 74 TestEnumeratorIsEmpty(&enumerator); |
| 71 } | 75 } |
| 72 | 76 |
| 73 } // namespace | 77 } // namespace |
| OLD | NEW |