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

Unified 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: better tests 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_test_util.h
===================================================================
--- chrome/browser/chromeos/gdata/gdata_test_util.h (revision 150627)
+++ chrome/browser/chromeos/gdata/gdata_test_util.h (working copy)
@@ -9,6 +9,8 @@
#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "chrome/browser/chromeos/gdata/gdata_files.h"
+class FilePath;
+
namespace gdata {
class GDataEntryProto;
@@ -44,9 +46,16 @@
// Copies |error| to |output|. Used to run asynchronous functions that take
// FileOperationCallback from tests.
-void CopyErrorCodeFromFileOperationCallback(
- GDataFileError* output, GDataFileError error);
+void CopyErrorCodeFromFileOperationCallback(GDataFileError* output,
+ GDataFileError error);
+// Copies |error| and |moved_file_path| to |out_error| and |out_file_path|.
+// Used to run asynchronous functions that take FileMoveCallback from tests.
+void CopyResultsFromFileMoveCallback(GDataFileError* out_error,
+ FilePath* out_file_path,
+ GDataFileError error,
+ const FilePath& moved_file_path);
+
// Copies |error| and |entry_proto| to |out_error| and |out_entry_proto|
// respectively. Used to run asynchronous functions that take
// GetEntryInfoCallback from tests.

Powered by Google App Engine
This is Rietveld 408576698