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

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

Issue 42155: Remove logging.h from cc files that don't use it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « net/base/bzip2_filter.cc ('k') | net/base/net_util_unittest.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 5 #include <string>
6 6
7 #include "net/base/escape.h" 7 #include "net/base/escape.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h"
11 #include "base/string_util.h" 10 #include "base/string_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace { 13 namespace {
15 14
16 struct EscapeCase { 15 struct EscapeCase {
17 const wchar_t* input; 16 const wchar_t* input;
18 const wchar_t* output; 17 const wchar_t* output;
19 }; 18 };
20 19
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 const EscapeForHTMLCase tests[] = { 223 const EscapeForHTMLCase tests[] = {
225 { "hello", "hello" }, 224 { "hello", "hello" },
226 { "<hello>", "&lt;hello&gt;" }, 225 { "<hello>", "&lt;hello&gt;" },
227 { "don\'t mess with me", "don&#39;t mess with me" }, 226 { "don\'t mess with me", "don&#39;t mess with me" },
228 }; 227 };
229 for (size_t i = 0; i < arraysize(tests); ++i) { 228 for (size_t i = 0; i < arraysize(tests); ++i) {
230 std::string result = EscapeForHTML(std::string(tests[i].input)); 229 std::string result = EscapeForHTML(std::string(tests[i].input));
231 EXPECT_EQ(std::string(tests[i].expected_output), result); 230 EXPECT_EQ(std::string(tests[i].expected_output), result);
232 } 231 }
233 } 232 }
OLDNEW
« no previous file with comments | « net/base/bzip2_filter.cc ('k') | net/base/net_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698