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/drive/fake_drive_service.h" | 5 #include "chrome/browser/drive/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/md5.h" | 11 #include "base/md5.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
15 #include "base/strings/string_tokenizer.h" | 15 #include "base/strings/string_tokenizer.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "chrome/browser/drive/drive_api_util.h" | 19 #include "chrome/browser/drive/drive_api_util.h" |
20 #include "chrome/browser/google_apis/drive_api_parser.h" | |
21 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
22 #include "chrome/browser/google_apis/test_util.h" | |
23 #include "chrome/browser/google_apis/time_util.h" | |
24 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 21 #include "google_apis/drive/drive_api_parser.h" |
| 22 #include "google_apis/drive/gdata_wapi_parser.h" |
| 23 #include "google_apis/drive/test_util.h" |
| 24 #include "google_apis/drive/time_util.h" |
25 #include "net/base/escape.h" | 25 #include "net/base/escape.h" |
26 #include "net/base/url_util.h" | 26 #include "net/base/url_util.h" |
27 | 27 |
28 using content::BrowserThread; | 28 using content::BrowserThread; |
29 using google_apis::AboutResource; | 29 using google_apis::AboutResource; |
30 using google_apis::AboutResourceCallback; | 30 using google_apis::AboutResourceCallback; |
31 using google_apis::AccountMetadata; | 31 using google_apis::AccountMetadata; |
32 using google_apis::AppList; | 32 using google_apis::AppList; |
33 using google_apis::AppListCallback; | 33 using google_apis::AppListCallback; |
34 using google_apis::AuthStatusCallback; | 34 using google_apis::AuthStatusCallback; |
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 FROM_HERE, | 1675 FROM_HERE, |
1676 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list))); | 1676 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list))); |
1677 } | 1677 } |
1678 | 1678 |
1679 GURL FakeDriveService::GetNewUploadSessionUrl() { | 1679 GURL FakeDriveService::GetNewUploadSessionUrl() { |
1680 return GURL("https://upload_session_url/" + | 1680 return GURL("https://upload_session_url/" + |
1681 base::Int64ToString(next_upload_sequence_number_++)); | 1681 base::Int64ToString(next_upload_sequence_number_++)); |
1682 } | 1682 } |
1683 | 1683 |
1684 } // namespace drive | 1684 } // namespace drive |
OLD | NEW |