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

Side by Side Diff: chrome/browser/google_apis/test_util.cc

Issue 14215003: Add ProgressCallback to DriveServiceInterface::DownloadFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
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 #include "chrome/browser/google_apis/test_util.h" 5 #include "chrome/browser/google_apis/test_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/json/json_file_value_serializer.h" 8 #include "base/json/json_file_value_serializer.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 parts.clear(); 190 parts.clear();
191 base::SplitString(range, '-', &parts); 191 base::SplitString(range, '-', &parts);
192 if (parts.size() != 2U) 192 if (parts.size() != 2U)
193 return false; 193 return false;
194 194
195 return (base::StringToInt64(parts[0], start_position) && 195 return (base::StringToInt64(parts[0], start_position) &&
196 base::StringToInt64(parts[1], end_position)); 196 base::StringToInt64(parts[1], end_position));
197 } 197 }
198 198
199 void AppendProgressCallbackResult(std::vector<ProgressInfo>* progress_values,
200 int64 progress,
201 int64 total) {
202 progress_values->push_back(ProgressInfo(progress, total));
203 }
204
199 } // namespace test_util 205 } // namespace test_util
200 } // namespace google_apis 206 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/test_util.h ('k') | chrome/browser/sync_file_system/drive_file_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698