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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc

Issue 108343009: [SyncFS] Move FakeDriveServiceHelper from V1 directory to V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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/drive_backend_v1/fake_drive_service_he lper.h" 5 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe r.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 12 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
13 #include "chrome/browser/sync_file_system/sync_status_code.h" 13 #include "chrome/browser/sync_file_system/sync_status_code.h"
14 #include "content/public/test/test_browser_thread.h" 14 #include "content/public/test/test_browser_thread.h"
15 #include "google_apis/drive/drive_api_parser.h" 15 #include "google_apis/drive/drive_api_parser.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 const std::string& content) { 297 const std::string& content) {
298 base::FilePath temp_file; 298 base::FilePath temp_file;
299 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file)); 299 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file));
300 EXPECT_EQ(static_cast<int>(content.size()), 300 EXPECT_EQ(static_cast<int>(content.size()),
301 file_util::WriteFile(temp_file, content.data(), content.size())); 301 file_util::WriteFile(temp_file, content.data(), content.size()));
302 return temp_file; 302 return temp_file;
303 } 303 }
304 304
305 } // namespace drive_backend 305 } // namespace drive_backend
306 } // namespace sync_file_system 306 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698