| 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 "base/basictypes.h" | |
| 6 #include "base/strings/string_split.h" | 5 #include "base/strings/string_split.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 9 #include "net/base/mime_util.h" | 8 #include "net/base/mime_util.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 10 |
| 12 namespace net { | 11 namespace net { |
| 13 | 12 |
| 14 TEST(MimeUtilTest, ExtensionTest) { | 13 TEST(MimeUtilTest, ExtensionTest) { |
| 15 // String: png\0css | 14 // String: png\0css |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 std::string post_data; | 285 std::string post_data; |
| 287 AddMultipartValueForUpload("value name", "value", "boundary", | 286 AddMultipartValueForUpload("value name", "value", "boundary", |
| 288 "content type", &post_data); | 287 "content type", &post_data); |
| 289 AddMultipartValueForUpload("value name", "value", "boundary", | 288 AddMultipartValueForUpload("value name", "value", "boundary", |
| 290 "", &post_data); | 289 "", &post_data); |
| 291 AddMultipartFinalDelimiterForUpload("boundary", &post_data); | 290 AddMultipartFinalDelimiterForUpload("boundary", &post_data); |
| 292 EXPECT_STREQ(ref_output, post_data.c_str()); | 291 EXPECT_STREQ(ref_output, post_data.c_str()); |
| 293 } | 292 } |
| 294 | 293 |
| 295 } // namespace net | 294 } // namespace net |
| OLD | NEW |