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

Side by Side Diff: content/browser/fileapi/sandbox_isolated_origin_database_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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/browser/fileapi/sandbox_isolated_origin_database.h" 9 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h"
10 #include "webkit/browser/fileapi/sandbox_origin_database.h" 10 #include "storage/browser/fileapi/sandbox_origin_database.h"
11 11
12 using fileapi::SandboxIsolatedOriginDatabase; 12 using storage::SandboxIsolatedOriginDatabase;
13 13
14 namespace content { 14 namespace content {
15 15
16 namespace { 16 namespace {
17 const base::FilePath::CharType kOriginDirectory[] = FILE_PATH_LITERAL("iso"); 17 const base::FilePath::CharType kOriginDirectory[] = FILE_PATH_LITERAL("iso");
18 } // namespace 18 } // namespace
19 19
20 TEST(SandboxIsolatedOriginDatabaseTest, BasicTest) { 20 TEST(SandboxIsolatedOriginDatabaseTest, BasicTest) {
21 base::ScopedTempDir dir; 21 base::ScopedTempDir dir;
22 ASSERT_TRUE(dir.CreateUniqueTempDir()); 22 ASSERT_TRUE(dir.CreateUniqueTempDir());
(...skipping 11 matching lines...) Expand all
34 34
35 EXPECT_TRUE(database.HasOriginPath(kOrigin)); 35 EXPECT_TRUE(database.HasOriginPath(kOrigin));
36 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path1)); 36 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path1));
37 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path2)); 37 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path2));
38 EXPECT_FALSE(path1.empty()); 38 EXPECT_FALSE(path1.empty());
39 EXPECT_FALSE(path2.empty()); 39 EXPECT_FALSE(path2.empty());
40 EXPECT_EQ(path1, path2); 40 EXPECT_EQ(path1, path2);
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698