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

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

Issue 10827211: Replace GDataDirectory::TakeEntry with GDataDirectoryService::AddEntryToDirectory. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: expect/assert after RunBlockingTask Created 8 years, 4 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
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_GDATA_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
7 7
8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
9 9
10 class FilePath;
11
10 namespace gdata { 12 namespace gdata {
11 13
12 class GDataCacheEntry; 14 class GDataCacheEntry;
13 15
14 namespace test_util { 16 namespace test_util {
15 17
16 // Runs a task posted to the blocking pool, including subquent tasks posted 18 // Runs a task posted to the blocking pool, including subquent tasks posted
17 // to the UI message loop and the blocking pool. 19 // to the UI message loop and the blocking pool.
18 // 20 //
19 // A task is often posted to the blocking pool with PostTaskAndReply(). In 21 // A task is often posted to the blocking pool with PostTaskAndReply(). In
(...skipping 17 matching lines...) Expand all
37 GDataCacheEntry ToCacheEntry(int cache_state); 39 GDataCacheEntry ToCacheEntry(int cache_state);
38 40
39 // Returns true if the cache state of the given two cache entries are equal. 41 // Returns true if the cache state of the given two cache entries are equal.
40 bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b); 42 bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b);
41 43
42 // Copies |error| to |output|. Used to run asynchronous functions that take 44 // Copies |error| to |output|. Used to run asynchronous functions that take
43 // FileOperationCallback from tests. 45 // FileOperationCallback from tests.
44 void CopyErrorCodeFromFileOperationCallback( 46 void CopyErrorCodeFromFileOperationCallback(
45 GDataFileError* output, GDataFileError error); 47 GDataFileError* output, GDataFileError error);
46 48
49 void CopyErrorCodeFromFilePathUpdateCallback(GDataFileError* output,
satorux1 2012/08/08 23:25:01 function comment is missing. |updated_file_path| s
achuithb 2012/08/09 00:12:51 Done.
50 GDataFileError error, const FilePath& updated_file_path);
satorux1 2012/08/08 23:25:01 could you list parameters vertically?
achuithb 2012/08/09 00:12:51 Done.
47 51
48 } // namespace test_util 52 } // namespace test_util
49 } // namespace gdata 53 } // namespace gdata
50 54
51 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ 55 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698