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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_
7 7
8 #include <stdint.h>
9
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sync_file_system/sync_status_code.h" 11 #include "chrome/browser/sync_file_system/sync_status_code.h"
10 #include "google_apis/drive/drive_api_error_codes.h" 12 #include "google_apis/drive/drive_api_error_codes.h"
11 13
12 namespace google_apis { 14 namespace google_apis {
13 class FileResource; 15 class FileResource;
14 } 16 }
15 17
16 namespace sync_file_system { 18 namespace sync_file_system {
17 namespace drive_backend { 19 namespace drive_backend {
(...skipping 11 matching lines...) Expand all
29 const FileMetadata& right); 31 const FileMetadata& right);
30 void ExpectEquivalentTrackers(const FileTracker& left, 32 void ExpectEquivalentTrackers(const FileTracker& left,
31 const FileTracker& right); 33 const FileTracker& right);
32 34
33 scoped_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id, 35 scoped_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id,
34 const std::string& title); 36 const std::string& title);
35 scoped_ptr<FileMetadata> CreateFileMetadata(const std::string& file_id, 37 scoped_ptr<FileMetadata> CreateFileMetadata(const std::string& file_id,
36 const std::string& title, 38 const std::string& title,
37 const std::string& md5); 39 const std::string& md5);
38 scoped_ptr<FileTracker> CreateTracker(const FileMetadata& metadata, 40 scoped_ptr<FileTracker> CreateTracker(const FileMetadata& metadata,
39 int64 tracker_id, 41 int64_t tracker_id,
40 const FileTracker* parent_tracker); 42 const FileTracker* parent_tracker);
41 scoped_ptr<FileTracker> CreatePlaceholderTracker( 43 scoped_ptr<FileTracker> CreatePlaceholderTracker(
42 const std::string& file_id, 44 const std::string& file_id,
43 int64 tracker_id, 45 int64_t tracker_id,
44 const FileTracker* parent_tracker); 46 const FileTracker* parent_tracker);
45 47
46 // The return value type of GetFileResourceKind(). 48 // The return value type of GetFileResourceKind().
47 enum FileResourceKind { 49 enum FileResourceKind {
48 RESOURCE_KIND_FILE, 50 RESOURCE_KIND_FILE,
49 RESOURCE_KIND_FOLDER, 51 RESOURCE_KIND_FOLDER,
50 }; 52 };
51 53
52 // Returns the kind of the given FileResourceKind. 54 // Returns the kind of the given FileResourceKind.
53 FileResourceKind GetFileResourceKind(const google_apis::FileResource& resource); 55 FileResourceKind GetFileResourceKind(const google_apis::FileResource& resource);
54 56
55 } // namespace test_util 57 } // namespace test_util
56 } // namespace drive_backend 58 } // namespace drive_backend
57 } // namespace sync_file_system 59 } // namespace sync_file_system
58 60
59 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL _H_ 61 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698