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 <algorithm> | 5 #include <algorithm> |
6 #include <map> | 6 #include <map> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
12 #include "base/string_split.h" | |
13 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/string_split.h" |
15 #include "chrome/browser/google_apis/gdata_wapi_operations.h" | 15 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
16 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 16 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
17 #include "chrome/browser/google_apis/gdata_wapi_url_generator.h" | 17 #include "chrome/browser/google_apis/gdata_wapi_url_generator.h" |
18 #include "chrome/browser/google_apis/operation_registry.h" | 18 #include "chrome/browser/google_apis/operation_registry.h" |
19 #include "chrome/browser/google_apis/test_server/http_request.h" | 19 #include "chrome/browser/google_apis/test_server/http_request.h" |
20 #include "chrome/browser/google_apis/test_server/http_response.h" | 20 #include "chrome/browser/google_apis/test_server/http_response.h" |
21 #include "chrome/browser/google_apis/test_server/http_server.h" | 21 #include "chrome/browser/google_apis/test_server/http_server.h" |
22 #include "chrome/browser/google_apis/test_util.h" | 22 #include "chrome/browser/google_apis/test_util.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/test/base/testing_profile.h" | 24 #include "chrome/test/base/testing_profile.h" |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 EXPECT_EQ(base::Int64ToString(kUploadContent.size()), | 1407 EXPECT_EQ(base::Int64ToString(kUploadContent.size()), |
1408 http_request_.headers["X-Upload-Content-Length"]); | 1408 http_request_.headers["X-Upload-Content-Length"]); |
1409 // For updating an existing file, an empty body should be attached (PUT | 1409 // For updating an existing file, an empty body should be attached (PUT |
1410 // requires a body) | 1410 // requires a body) |
1411 EXPECT_TRUE(http_request_.has_content); | 1411 EXPECT_TRUE(http_request_.has_content); |
1412 EXPECT_EQ("", http_request_.content); | 1412 EXPECT_EQ("", http_request_.content); |
1413 EXPECT_EQ(kWrongETag, http_request_.headers["If-Match"]); | 1413 EXPECT_EQ(kWrongETag, http_request_.headers["If-Match"]); |
1414 } | 1414 } |
1415 | 1415 |
1416 } // namespace google_apis | 1416 } // namespace google_apis |
OLD | NEW |