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

Side by Side Diff: webkit/browser/fileapi/file_system_url_unittest.cc

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 (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/browser/fileapi/file_system_url.h" 5 #include "webkit/browser/fileapi/file_system_url.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/browser/fileapi/syncable/syncable_file_system_util.h"
10 #include "webkit/common/fileapi/file_system_types.h" 11 #include "webkit/common/fileapi/file_system_types.h"
11 #include "webkit/common/fileapi/file_system_util.h" 12 #include "webkit/common/fileapi/file_system_util.h"
12 #include "webkit/fileapi/syncable/syncable_file_system_util.h"
13 13
14 #define FPL FILE_PATH_LITERAL 14 #define FPL FILE_PATH_LITERAL
15 15
16 #if defined(FILE_PATH_USES_DRIVE_LETTERS) 16 #if defined(FILE_PATH_USES_DRIVE_LETTERS)
17 #define DRIVE FPL("C:") 17 #define DRIVE FPL("C:")
18 #else 18 #else
19 #define DRIVE FPL("/a/") 19 #define DRIVE FPL("/a/")
20 #endif 20 #endif
21 21
22 namespace fileapi { 22 namespace fileapi {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 base::FilePath::FromUTF8Unsafe("a")); 186 base::FilePath::FromUTF8Unsafe("a"));
187 187
188 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_a)); 188 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_a));
189 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_b)); 189 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_b));
190 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_foo_perm_a)); 190 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_foo_perm_a));
191 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_temp_a)); 191 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_temp_a));
192 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_perm_a)); 192 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_perm_a));
193 } 193 }
194 194
195 } // namespace fileapi 195 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_context.cc ('k') | webkit/browser/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698