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

Side by Side Diff: content/common/database_identifier_unittest.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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 "webkit/common/database/database_identifier.h" 5 #include "webkit/common/database/database_identifier.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 using webkit_database::DatabaseIdentifier; 11 using storage::DatabaseIdentifier;
12 12
13 namespace content { 13 namespace content {
14 namespace { 14 namespace {
15 15
16 TEST(DatabaseIdentifierTest, CreateIdentifierFromOrigin) { 16 TEST(DatabaseIdentifierTest, CreateIdentifierFromOrigin) {
17 struct OriginTestCase { 17 struct OriginTestCase {
18 std::string origin; 18 std::string origin;
19 std::string expectedIdentifier; 19 std::string expectedIdentifier;
20 } cases[] = { 20 } cases[] = {
21 {"http://google.com", "http_google.com_0"}, 21 {"http://google.com", "http_google.com_0"},
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 << "test case " << bogus_components[i]; 238 << "test case " << bogus_components[i];
239 EXPECT_EQ(GURL("null"), identifier.ToOrigin()) 239 EXPECT_EQ(GURL("null"), identifier.ToOrigin())
240 << "test case " << bogus_components[i]; 240 << "test case " << bogus_components[i];
241 EXPECT_EQ(true, identifier.is_unique()) 241 EXPECT_EQ(true, identifier.is_unique())
242 << "test case " << bogus_components[i]; 242 << "test case " << bogus_components[i];
243 } 243 }
244 } 244 }
245 245
246 } // namespace 246 } // namespace
247 } // namespace content 247 } // namespace content
OLDNEW
« no previous file with comments | « content/common/database_connections_unittest.cc ('k') | content/common/fileapi/file_system_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698