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

Side by Side Diff: chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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
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/chromeos/drive/sync/remove_performer.h" 5 #include "chrome/browser/chromeos/drive/sync/remove_performer.h"
6 6
7 #include "base/task_runner_util.h" 7 #include "base/task_runner_util.h"
8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h"
9 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 9 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
10 #include "chrome/browser/chromeos/drive/job_scheduler.h" 10 #include "chrome/browser/chromeos/drive/job_scheduler.h"
11 #include "chrome/browser/chromeos/drive/resource_metadata.h" 11 #include "chrome/browser/chromeos/drive/resource_metadata.h"
12 #include "chrome/browser/drive/fake_drive_service.h" 12 #include "components/drive/service/fake_drive_service.h"
13 #include "content/public/test/test_utils.h" 13 #include "content/public/test/test_utils.h"
14 #include "google_apis/drive/drive_api_parser.h" 14 #include "google_apis/drive/drive_api_parser.h"
15 #include "google_apis/drive/test_util.h" 15 #include "google_apis/drive/test_util.h"
16 16
17 namespace drive { 17 namespace drive {
18 namespace internal { 18 namespace internal {
19 19
20 typedef file_system::OperationTestBase RemovePerformerTest; 20 typedef file_system::OperationTestBase RemovePerformerTest;
21 21
22 TEST_F(RemovePerformerTest, RemoveFile) { 22 TEST_F(RemovePerformerTest, RemoveFile) {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 GetLocalResourceEntryById(src_entry.local_id(), &result_entry)); 190 GetLocalResourceEntryById(src_entry.local_id(), &result_entry));
191 EXPECT_EQ(src_entry.parent_local_id(), result_entry.parent_local_id()); 191 EXPECT_EQ(src_entry.parent_local_id(), result_entry.parent_local_id());
192 192
193 ASSERT_EQ(1U, delegate()->drive_sync_errors().size()); 193 ASSERT_EQ(1U, delegate()->drive_sync_errors().size());
194 EXPECT_EQ(file_system::DRIVE_SYNC_ERROR_DELETE_WITHOUT_PERMISSION, 194 EXPECT_EQ(file_system::DRIVE_SYNC_ERROR_DELETE_WITHOUT_PERMISSION,
195 delegate()->drive_sync_errors()[0]); 195 delegate()->drive_sync_errors()[0]);
196 } 196 }
197 197
198 } // namespace internal 198 } // namespace internal
199 } // namespace drive 199 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/sync/remove_performer.cc ('k') | chrome/browser/chromeos/drive/sync_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698