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

Side by Side Diff: webkit/fileapi/file_system_util_unittest.cc

Issue 15859007: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dump_file_system build fix Created 7 years, 7 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 | « webkit/fileapi/file_system_url_unittest.cc ('k') | webkit/fileapi/file_writer_delegate.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/fileapi/file_system_util.h" 5 #include "webkit/fileapi/file_system_util.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/fileapi/file_system_url.h" 10 #include "webkit/browser/fileapi/file_system_url.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 namespace { 13 namespace {
14 14
15 class FileSystemUtilTest : public testing::Test {}; 15 class FileSystemUtilTest : public testing::Test {};
16 16
17 TEST_F(FileSystemUtilTest, GetTempFileSystemRootURI) { 17 TEST_F(FileSystemUtilTest, GetTempFileSystemRootURI) {
18 GURL origin_url("http://chromium.org"); 18 GURL origin_url("http://chromium.org");
19 fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary; 19 fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
20 GURL uri = GURL("filesystem:http://chromium.org/temporary/"); 20 GURL uri = GURL("filesystem:http://chromium.org/temporary/");
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 EXPECT_FALSE(CrackIsolatedFileSystemName("fooIsolatedbar", &fsid)); 194 EXPECT_FALSE(CrackIsolatedFileSystemName("fooIsolatedbar", &fsid));
195 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Persistent", &fsid)); 195 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Persistent", &fsid));
196 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Temporary", &fsid)); 196 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Temporary", &fsid));
197 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:External", &fsid)); 197 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:External", &fsid));
198 EXPECT_FALSE(CrackIsolatedFileSystemName(":Isolated_bar", &fsid)); 198 EXPECT_FALSE(CrackIsolatedFileSystemName(":Isolated_bar", &fsid));
199 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Isolated_", &fsid)); 199 EXPECT_FALSE(CrackIsolatedFileSystemName("foo:Isolated_", &fsid));
200 } 200 }
201 201
202 } // namespace (anonymous) 202 } // namespace (anonymous)
203 } // namespace fileapi 203 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_url_unittest.cc ('k') | webkit/fileapi/file_writer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698