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/fake_drive_service.h" | 5 #include "chrome/browser/google_apis/fake_drive_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/string_split.h" | |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" |
16 #include "base/strings/string_tokenizer.h" | 16 #include "base/strings/string_tokenizer.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "chrome/browser/google_apis/drive_api_parser.h" | 18 #include "chrome/browser/google_apis/drive_api_parser.h" |
19 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 19 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
20 #include "chrome/browser/google_apis/test_util.h" | 20 #include "chrome/browser/google_apis/test_util.h" |
21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
23 | 23 |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 | 25 |
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 return base::StringPrintf("resource_id_%d", resource_id_count_); | 1131 return base::StringPrintf("resource_id_%d", resource_id_count_); |
1132 } | 1132 } |
1133 | 1133 |
1134 void FakeDriveService::AddNewChangestamp(base::DictionaryValue* entry) { | 1134 void FakeDriveService::AddNewChangestamp(base::DictionaryValue* entry) { |
1135 ++largest_changestamp_; | 1135 ++largest_changestamp_; |
1136 entry->SetString("docs$changestamp.value", | 1136 entry->SetString("docs$changestamp.value", |
1137 base::Int64ToString(largest_changestamp_)); | 1137 base::Int64ToString(largest_changestamp_)); |
1138 } | 1138 } |
1139 | 1139 |
1140 } // namespace google_apis | 1140 } // namespace google_apis |
OLD | NEW |