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 "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" | 5 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 | 7 |
8 namespace chrome { | |
9 | |
10 namespace { | 8 namespace { |
11 | 9 |
12 struct MtpFileEntryData { | 10 struct MtpFileEntryData { |
13 const char* const name; | 11 const char* const name; |
14 int64 size; | 12 int64 size; |
15 bool is_directory; | 13 bool is_directory; |
16 time_t modification_time; | 14 time_t modification_time; |
17 }; | 15 }; |
18 | 16 |
19 const MtpFileEntryData kTestCases[] = { | 17 const MtpFileEntryData kTestCases[] = { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 enumerator.LastModifiedTime().ToTimeT()); | 64 enumerator.LastModifiedTime().ToTimeT()); |
67 } | 65 } |
68 TestNextEntryIsEmpty(&enumerator); | 66 TestNextEntryIsEmpty(&enumerator); |
69 TestNextEntryIsEmpty(&enumerator); | 67 TestNextEntryIsEmpty(&enumerator); |
70 TestEnumeratorIsEmpty(&enumerator); | 68 TestEnumeratorIsEmpty(&enumerator); |
71 TestNextEntryIsEmpty(&enumerator); | 69 TestNextEntryIsEmpty(&enumerator); |
72 TestEnumeratorIsEmpty(&enumerator); | 70 TestEnumeratorIsEmpty(&enumerator); |
73 } | 71 } |
74 | 72 |
75 } // namespace | 73 } // namespace |
76 | |
77 } // namespace chrome | |
OLD | NEW |