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

Side by Side Diff: chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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/sync_file_system/local/syncable_file_operation_runner.h " 5 #include "chrome/browser/sync_file_system/local/syncable_file_operation_runner.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" 20 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h"
21 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" 21 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
22 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" 22 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
23 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h" 23 #include "chrome/browser/sync_file_system/local/local_file_sync_status.h"
24 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 24 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
25 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h " 25 #include "chrome/browser/sync_file_system/local/syncable_file_system_operation.h "
26 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 26 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
27 #include "content/public/test/mock_blob_url_request_context.h"
28 #include "content/public/test/test_browser_thread_bundle.h" 27 #include "content/public/test/test_browser_thread_bundle.h"
29 #include "storage/browser/fileapi/file_system_context.h" 28 #include "storage/browser/fileapi/file_system_context.h"
30 #include "storage/browser/fileapi/file_system_operation_runner.h" 29 #include "storage/browser/fileapi/file_system_operation_runner.h"
30 #include "storage/browser/test/mock_blob_url_request_context.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" 32 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
33 #include "third_party/leveldatabase/src/include/leveldb/env.h" 33 #include "third_party/leveldatabase/src/include/leveldb/env.h"
34 34
35 using storage::FileSystemOperation; 35 using storage::FileSystemOperation;
36 using storage::FileSystemURL; 36 using storage::FileSystemURL;
37 using content::MockBlobURLRequestContext; 37 using content::MockBlobURLRequestContext;
38 using content::ScopedTextBlob; 38 using content::ScopedTextBlob;
39 using base::File; 39 using base::File;
40 40
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 storage::FileSystemOperationRunner::OperationID id = 407 storage::FileSystemOperationRunner::OperationID id =
408 file_system_.operation_runner()->Truncate( 408 file_system_.operation_runner()->Truncate(
409 URL(kFile), 10, ExpectStatus(FROM_HERE, File::FILE_OK)); 409 URL(kFile), 10, ExpectStatus(FROM_HERE, File::FILE_OK));
410 file_system_.operation_runner()->Cancel( 410 file_system_.operation_runner()->Cancel(
411 id, ExpectStatus(FROM_HERE, File::FILE_ERROR_INVALID_OPERATION)); 411 id, ExpectStatus(FROM_HERE, File::FILE_ERROR_INVALID_OPERATION));
412 base::RunLoop().Run(); 412 base::RunLoop().Run();
413 EXPECT_EQ(2, callback_count_); 413 EXPECT_EQ(2, callback_count_);
414 } 414 }
415 415
416 } // namespace sync_file_system 416 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698