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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_sync_status_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 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" 7 #include "base/basictypes.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 using fileapi::FileSystemURL; 11 using storage::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";
20 const char kHasPeriod[] = "filesystem:http://foo.com/test/dir a.dir b"; 20 const char kHasPeriod[] = "filesystem:http://foo.com/test/dir a.dir b";
21 21
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kFile))); 110 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kFile)));
111 111
112 status.EndSyncing(URL(kParent)); 112 status.EndSyncing(URL(kParent));
113 status.StartSyncing(URL(kFile)); 113 status.StartSyncing(URL(kFile));
114 114
115 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kParent))); 115 EXPECT_TRUE(status.IsChildOrParentSyncing(URL(kParent)));
116 } 116 }
117 117
118 } // namespace sync_file_system 118 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698