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

Side by Side Diff: chrome/browser/chromeos/gdata/mock_gdata_file_system.h

Issue 10182009: gdata: Remove GDataFileSystem::GetFileFromCacheByPath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better solution Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 9 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 MOCK_METHOD4(CreateDirectory, 44 MOCK_METHOD4(CreateDirectory,
45 void(const FilePath& directory_path, 45 void(const FilePath& directory_path,
46 bool is_exclusive, 46 bool is_exclusive,
47 bool is_recursive, 47 bool is_recursive,
48 const FileOperationCallback& callback)); 48 const FileOperationCallback& callback));
49 MOCK_METHOD2(GetFileByPath, void(const FilePath& file_path, 49 MOCK_METHOD2(GetFileByPath, void(const FilePath& file_path,
50 const GetFileCallback& callback)); 50 const GetFileCallback& callback));
51 MOCK_METHOD2(GetFileByResourceId, 51 MOCK_METHOD2(GetFileByResourceId,
52 void(const std::string& resource_id, 52 void(const std::string& resource_id,
53 const GetFileCallback& callback)); 53 const GetFileCallback& callback));
54 MOCK_METHOD2(GetFileFromCacheByPath,
55 void(const FilePath& gdata_file_path,
56 const GetFileFromCacheCallback& callback));
57 MOCK_METHOD0(GetProgressStatusList, 54 MOCK_METHOD0(GetProgressStatusList,
58 std::vector<GDataOperationRegistry::ProgressStatus>()); 55 std::vector<GDataOperationRegistry::ProgressStatus>());
59 MOCK_METHOD1(CancelOperation, bool(const FilePath& file_path)); 56 MOCK_METHOD1(CancelOperation, bool(const FilePath& file_path));
60 MOCK_METHOD1(AddOperationObserver, 57 MOCK_METHOD1(AddOperationObserver,
61 void(GDataOperationRegistry::Observer* observer)); 58 void(GDataOperationRegistry::Observer* observer));
62 MOCK_METHOD1(RemoveOperationObserver, 59 MOCK_METHOD1(RemoveOperationObserver,
63 void(GDataOperationRegistry::Observer* observer)); 60 void(GDataOperationRegistry::Observer* observer));
64 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, 61 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id,
65 const std::string& md5, 62 const std::string& md5,
66 const GetCacheStateCallback& callback)); 63 const GetCacheStateCallback& callback));
(...skipping 17 matching lines...) Expand all
84 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, 81 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file,
85 DocumentEntry* entry, 82 DocumentEntry* entry,
86 const FilePath& file_content_path, 83 const FilePath& file_content_path,
87 FileOperationType cache_operation)); 84 FileOperationType cache_operation));
88 MOCK_METHOD0(hide_hosted_documents, bool()); 85 MOCK_METHOD0(hide_hosted_documents, bool());
89 }; 86 };
90 87
91 } // namespace gdata 88 } // namespace gdata
92 89
93 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698