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

Side by Side Diff: url/url_canon_unittest.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <errno.h> 5 #include <errno.h>
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/icu/public/common/unicode/ucnv.h" 8 #include "third_party/icu/source/common/unicode/ucnv.h"
9 #include "url/url_canon.h" 9 #include "url/url_canon.h"
10 #include "url/url_canon_icu.h" 10 #include "url/url_canon_icu.h"
11 #include "url/url_canon_internal.h" 11 #include "url/url_canon_internal.h"
12 #include "url/url_canon_stdstring.h" 12 #include "url/url_canon_stdstring.h"
13 #include "url/url_parse.h" 13 #include "url/url_parse.h"
14 #include "url/url_test_utils.h" 14 #include "url/url_test_utils.h"
15 15
16 // Some implementations of base/basictypes.h may define ARRAYSIZE. 16 // Some implementations of base/basictypes.h may define ARRAYSIZE.
17 // If it's not defined, we define it to the ARRAYSIZE_UNSAFE macro 17 // If it's not defined, we define it to the ARRAYSIZE_UNSAFE macro
18 // which is in our version of basictypes.h. 18 // which is in our version of basictypes.h.
(...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 url_canon::StdStringCanonOutput repl_output(&repl_str); 2099 url_canon::StdStringCanonOutput repl_output(&repl_str);
2100 url_canon::ReplaceFileURL(src, parsed, repl, NULL, &repl_output, &repl_parsed) ; 2100 url_canon::ReplaceFileURL(src, parsed, repl, NULL, &repl_output, &repl_parsed) ;
2101 repl_output.Complete(); 2101 repl_output.Complete();
2102 2102
2103 // Generate the expected string and check. 2103 // Generate the expected string and check.
2104 std::string expected("file:///foo?"); 2104 std::string expected("file:///foo?");
2105 for (size_t i = 0; i < new_query.length(); i++) 2105 for (size_t i = 0; i < new_query.length(); i++)
2106 expected.push_back('a'); 2106 expected.push_back('a');
2107 EXPECT_TRUE(expected == repl_str); 2107 EXPECT_TRUE(expected == repl_str);
2108 } 2108 }
OLDNEW
« no previous file with comments | « url/url_canon_icu.cc ('k') | webkit/browser/fileapi/file_system_dir_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698