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

Side by Side Diff: webkit/database/database_util_unittest.cc

Issue 14272007: Update the remaining include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « ui/webui/web_ui_util.h ('k') | webkit/fileapi/file_system_dir_url_request_job_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/string_piece.h" 5 #include "base/strings/string_piece.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "webkit/database/database_util.h" 8 #include "webkit/database/database_util.h"
9 9
10 using webkit_database::DatabaseUtil; 10 using webkit_database::DatabaseUtil;
11 11
12 static void TestVfsFilePath(bool expected_result, 12 static void TestVfsFilePath(bool expected_result,
13 const char* vfs_file_name, 13 const char* vfs_file_name,
14 const char* expected_origin_identifier = "", 14 const char* expected_origin_identifier = "",
15 const char* expected_database_name = "", 15 const char* expected_database_name = "",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 TEST(DatabaseUtilTest, IsValidOriginIdentifier) { 64 TEST(DatabaseUtilTest, IsValidOriginIdentifier) {
65 TestValidOriginIdentifier(true, "http_bar_0"); 65 TestValidOriginIdentifier(true, "http_bar_0");
66 TestValidOriginIdentifier(true, ""); 66 TestValidOriginIdentifier(true, "");
67 TestValidOriginIdentifier(false, "bad..id"); 67 TestValidOriginIdentifier(false, "bad..id");
68 TestValidOriginIdentifier(false, "bad/id"); 68 TestValidOriginIdentifier(false, "bad/id");
69 TestValidOriginIdentifier(false, "bad\\id"); 69 TestValidOriginIdentifier(false, "bad\\id");
70 TestValidOriginIdentifier(false, base::StringPiece("bad\0id", 6)); 70 TestValidOriginIdentifier(false, base::StringPiece("bad\0id", 6));
71 } 71 }
72 72
73 } // namespace webkit_database 73 } // namespace webkit_database
OLDNEW
« no previous file with comments | « ui/webui/web_ui_util.h ('k') | webkit/fileapi/file_system_dir_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698