OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "webkit/blob/mock_blob_url_request_context.h" | 13 #include "webkit/blob/mock_blob_url_request_context.h" |
14 #include "webkit/browser/fileapi/file_system_context.h" | 14 #include "webkit/browser/fileapi/file_system_context.h" |
15 #include "webkit/fileapi/syncable/canned_syncable_file_system.h" | 15 #include "webkit/browser/fileapi/syncable/canned_syncable_file_system.h" |
16 #include "webkit/fileapi/syncable/local_file_change_tracker.h" | 16 #include "webkit/browser/fileapi/syncable/local_file_change_tracker.h" |
17 #include "webkit/fileapi/syncable/local_file_sync_context.h" | 17 #include "webkit/browser/fileapi/syncable/local_file_sync_context.h" |
18 #include "webkit/fileapi/syncable/local_file_sync_status.h" | 18 #include "webkit/browser/fileapi/syncable/local_file_sync_status.h" |
19 #include "webkit/fileapi/syncable/syncable_file_operation_runner.h" | 19 #include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h" |
20 #include "webkit/fileapi/syncable/syncable_file_system_operation.h" | 20 #include "webkit/browser/fileapi/syncable/syncable_file_system_operation.h" |
21 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 21 #include "webkit/browser/fileapi/syncable/syncable_file_system_util.h" |
22 | 22 |
23 using fileapi::FileSystemOperation; | 23 using fileapi::FileSystemOperation; |
24 using fileapi::FileSystemURL; | 24 using fileapi::FileSystemURL; |
25 using webkit_blob::MockBlobURLRequestContext; | 25 using webkit_blob::MockBlobURLRequestContext; |
26 using webkit_blob::ScopedTextBlob; | 26 using webkit_blob::ScopedTextBlob; |
27 using base::PlatformFileError; | 27 using base::PlatformFileError; |
28 | 28 |
29 namespace sync_file_system { | 29 namespace sync_file_system { |
30 | 30 |
31 namespace { | 31 namespace { |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // Now the file must have been created and have the same content as temp_path. | 362 // Now the file must have been created and have the same content as temp_path. |
363 ResetCallbackStatus(); | 363 ResetCallbackStatus(); |
364 file_system_.DoVerifyFile( | 364 file_system_.DoVerifyFile( |
365 URL(kFile), kTestData, | 365 URL(kFile), kTestData, |
366 ExpectStatus(FROM_HERE, base::PLATFORM_FILE_OK)); | 366 ExpectStatus(FROM_HERE, base::PLATFORM_FILE_OK)); |
367 base::MessageLoop::current()->RunUntilIdle(); | 367 base::MessageLoop::current()->RunUntilIdle(); |
368 EXPECT_EQ(1, callback_count_); | 368 EXPECT_EQ(1, callback_count_); |
369 } | 369 } |
370 | 370 |
371 } // namespace sync_file_system | 371 } // namespace sync_file_system |
OLD | NEW |