Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: net/base/mime_util_unittest.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/mime_util.h ('k') | net/base/mock_file_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/base/mime_util.h ('k') | net/base/mock_file_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698