| 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 "chrome/browser/sync_file_system/local/local_file_sync_status.h" | 5 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 10 | 9 |
| 11 using storage::FileSystemURL; | 10 using storage::FileSystemURL; |
| 12 | 11 |
| 13 namespace sync_file_system { | 12 namespace sync_file_system { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 const char kParent[] = "filesystem:http://foo.com/test/dir a"; | 16 const char kParent[] = "filesystem:http://foo.com/test/dir a"; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 108 |
| 110 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kFile))); | 109 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kFile))); |
| 111 | 110 |
| 112 status.EndSyncing(URL(kParent)); | 111 status.EndSyncing(URL(kParent)); |
| 113 status.StartSyncing(URL(kFile)); | 112 status.StartSyncing(URL(kFile)); |
| 114 | 113 |
| 115 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kParent))); | 114 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kParent))); |
| 116 } | 115 } |
| 117 | 116 |
| 118 } // namespace sync_file_system | 117 } // namespace sync_file_system |
| OLD | NEW |