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

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_service_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/drive_file_sync_service.h" 5 #include "chrome/browser/sync_file_system/drive_file_sync_service.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/sync_file_system/drive/fake_api_util.h" 8 #include "chrome/browser/sync_file_system/drive/fake_api_util.h"
9 #include "chrome/browser/sync_file_system/drive_metadata_store.h" 9 #include "chrome/browser/sync_file_system/drive_metadata_store.h"
10 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" 10 #include "chrome/browser/sync_file_system/sync_file_system.pb.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "content/public/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/fileapi/syncable/syncable_file_system_util.h" 14 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h"
15 15
16 namespace sync_file_system { 16 namespace sync_file_system {
17 17
18 namespace { 18 namespace {
19 19
20 const char* kServiceName = DriveFileSyncService::kServiceName; 20 const char* kServiceName = DriveFileSyncService::kServiceName;
21 const char kSyncRootResourceId[] = "folder:sync_root_resource_id"; 21 const char kSyncRootResourceId[] = "folder:sync_root_resource_id";
22 22
23 void DidInitialize(bool* done, SyncStatusCode status, bool created) { 23 void DidInitialize(bool* done, SyncStatusCode status, bool created) {
24 EXPECT_EQ(SYNC_STATUS_OK, status); 24 EXPECT_EQ(SYNC_STATUS_OK, status);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::Bind(&ExpectEqStatus, &done, SYNC_STATUS_OK)); 125 base::Bind(&ExpectEqStatus, &done, SYNC_STATUS_OK));
126 message_loop()->RunUntilIdle(); 126 message_loop()->RunUntilIdle();
127 EXPECT_TRUE(done); 127 EXPECT_TRUE(done);
128 128
129 // Assert the App's origin folder was marked as deleted. 129 // Assert the App's origin folder was marked as deleted.
130 EXPECT_TRUE(fake_api_util()->remote_resources().find(origin_dir_resource_id) 130 EXPECT_TRUE(fake_api_util()->remote_resources().find(origin_dir_resource_id)
131 ->second.deleted); 131 ->second.deleted);
132 } 132 }
133 133
134 } // namespace sync_file_system 134 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698