Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1107)

Side by Side Diff: chrome/browser/media_galleries/linux/mtp_device_object_enumerator_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698