| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/syncable/local_file_sync_status.h" | 5 #include "webkit/browser/fileapi/syncable/local_file_sync_status.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "googleurl/src/gurl.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 using fileapi::FileSystemURL; | 11 using fileapi::FileSystemURL; |
| 12 | 12 |
| 13 namespace sync_file_system { | 13 namespace sync_file_system { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const char kParent[] = "filesystem:http://foo.com/test/dir a"; | 17 const char kParent[] = "filesystem:http://foo.com/test/dir a"; |
| 18 const char kFile[] = "filesystem:http://foo.com/test/dir a/dir b"; | 18 const char kFile[] = "filesystem:http://foo.com/test/dir a/dir b"; |
| 19 const char kChild[] = "filesystem:http://foo.com/test/dir a/dir b/file"; | 19 const char kChild[] = "filesystem:http://foo.com/test/dir a/dir b/file"; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 EXPECT_TRUE(status.IsSyncable(URL(kOther2))); | 80 EXPECT_TRUE(status.IsSyncable(URL(kOther2))); |
| 81 | 81 |
| 82 status.EndSyncing(URL(kFile)); | 82 status.EndSyncing(URL(kFile)); |
| 83 | 83 |
| 84 EXPECT_TRUE(status.IsWritable(URL(kFile))); | 84 EXPECT_TRUE(status.IsWritable(URL(kFile))); |
| 85 EXPECT_TRUE(status.IsWritable(URL(kParent))); | 85 EXPECT_TRUE(status.IsWritable(URL(kParent))); |
| 86 EXPECT_TRUE(status.IsWritable(URL(kChild))); | 86 EXPECT_TRUE(status.IsWritable(URL(kChild))); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace sync_file_system | 89 } // namespace sync_file_system |
| OLD | NEW |