| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |