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

Side by Side Diff: content/browser/database_util_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/strings/string_piece.h" 5 #include "base/strings/string_piece.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "webkit/browser/database/database_util.h" 8 #include "storage/browser/database/database_util.h"
9 #include "webkit/common/database/database_identifier.h" 9 #include "storage/common/database/database_identifier.h"
10 10
11 using base::ASCIIToUTF16; 11 using base::ASCIIToUTF16;
12 using webkit_database::DatabaseUtil; 12 using webkit_database::DatabaseUtil;
13 13
14 static void TestVfsFilePath(bool expected_result, 14 static void TestVfsFilePath(bool expected_result,
15 const char* vfs_file_name, 15 const char* vfs_file_name,
16 const char* expected_origin_identifier = "", 16 const char* expected_origin_identifier = "",
17 const char* expected_database_name = "", 17 const char* expected_database_name = "",
18 const char* expected_sqlite_suffix = "") { 18 const char* expected_sqlite_suffix = "") {
19 std::string origin_identifier; 19 std::string origin_identifier;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 TestValidOriginIdentifier(true, "http_bar_0"); 70 TestValidOriginIdentifier(true, "http_bar_0");
71 TestValidOriginIdentifier(false, ""); 71 TestValidOriginIdentifier(false, "");
72 TestValidOriginIdentifier(false, "bad..id"); 72 TestValidOriginIdentifier(false, "bad..id");
73 TestValidOriginIdentifier(false, "bad/id"); 73 TestValidOriginIdentifier(false, "bad/id");
74 TestValidOriginIdentifier(false, "bad\\id"); 74 TestValidOriginIdentifier(false, "bad\\id");
75 TestValidOriginIdentifier(false, "http_bad:0_2"); 75 TestValidOriginIdentifier(false, "http_bad:0_2");
76 TestValidOriginIdentifier(false, std::string("bad\0id", 6)); 76 TestValidOriginIdentifier(false, std::string("bad\0id", 6));
77 } 77 }
78 78
79 } // namespace content 79 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/database_tracker_unittest.cc ('k') | content/browser/databases_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698