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

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

Issue 10268023: gdata: Remove use of FindEntryByPathAsync() from gdata_file_system_proxy.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 7 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const std::string& resource_id, 56 const std::string& resource_id,
57 const GetFileCallback& get_file_callback, 57 const GetFileCallback& get_file_callback,
58 const GetDownloadDataCallback& get_download_data_callback)); 58 const GetDownloadDataCallback& get_download_data_callback));
59 MOCK_METHOD0(GetOperationRegistry, GDataOperationRegistry*()); 59 MOCK_METHOD0(GetOperationRegistry, GDataOperationRegistry*());
60 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, 60 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id,
61 const std::string& md5, 61 const std::string& md5,
62 const GetCacheStateCallback& callback)); 62 const GetCacheStateCallback& callback));
63 MOCK_METHOD2(GetFileInfoByPathAsync, 63 MOCK_METHOD2(GetFileInfoByPathAsync,
64 void(const FilePath& file_path, 64 void(const FilePath& file_path,
65 const GetFileInfoCallback& callback)); 65 const GetFileInfoCallback& callback));
66 MOCK_METHOD2(GetEntryInfoByPathAsync,
67 void(const FilePath& file_path,
68 const GetEntryInfoCallback& callback));
66 MOCK_METHOD2(ReadDirectoryByPathAsync, 69 MOCK_METHOD2(ReadDirectoryByPathAsync,
67 void(const FilePath& file_path, 70 void(const FilePath& file_path,
68 const ReadDirectoryCallback& callback)); 71 const ReadDirectoryCallback& callback));
69 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path, 72 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path,
70 GDataFileProperties* properties)); 73 GDataFileProperties* properties));
71 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); 74 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path));
72 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( 75 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath(
73 GDataRootDirectory::CacheSubDirectoryType)); 76 GDataRootDirectory::CacheSubDirectoryType));
74 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( 77 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath(
75 const std::string&, 78 const std::string&,
(...skipping 11 matching lines...) Expand all
87 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, 90 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file,
88 DocumentEntry* entry, 91 DocumentEntry* entry,
89 const FilePath& file_content_path, 92 const FilePath& file_content_path,
90 FileOperationType cache_operation)); 93 FileOperationType cache_operation));
91 MOCK_METHOD0(hide_hosted_documents, bool()); 94 MOCK_METHOD0(hide_hosted_documents, bool());
92 }; 95 };
93 96
94 } // namespace gdata 97 } // namespace gdata
95 98
96 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 99 #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