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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/sync_file_system/file_status_observer.h" | 10 #include "chrome/browser/sync_file_system/file_status_observer.h" |
11 #include "chrome/browser/sync_file_system/local_change_processor.h" | 11 #include "chrome/browser/sync_file_system/local_change_processor.h" |
12 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" | 12 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" |
13 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 13 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
14 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 14 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
15 #include "chrome/browser/sync_file_system/sync_status_code.h" | 15 #include "chrome/browser/sync_file_system/sync_status_code.h" |
16 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 16 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
18 #include "chrome/test/base/test_switches.h" | 18 #include "chrome/test/base/test_switches.h" |
| 19 #include "storage/browser/fileapi/file_system_url.h" |
| 20 #include "storage/browser/quota/quota_manager.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "webkit/browser/fileapi/file_system_url.h" | |
22 #include "webkit/browser/quota/quota_manager.h" | |
23 | 23 |
24 using ::testing::_; | 24 using ::testing::_; |
25 using ::testing::Eq; | 25 using ::testing::Eq; |
26 using ::testing::Ne; | 26 using ::testing::Ne; |
27 using ::testing::Property; | 27 using ::testing::Property; |
28 using ::testing::Return; | 28 using ::testing::Return; |
29 using storage::FileSystemURL; | 29 using storage::FileSystemURL; |
30 using sync_file_system::MockRemoteFileSyncService; | 30 using sync_file_system::MockRemoteFileSyncService; |
31 using sync_file_system::RemoteFileSyncService; | 31 using sync_file_system::RemoteFileSyncService; |
32 using sync_file_system::SyncFileSystemServiceFactory; | 32 using sync_file_system::SyncFileSystemServiceFactory; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/conflict_resolution_policy")) | 186 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/conflict_resolution_policy")) |
187 << message_; | 187 << message_; |
188 } | 188 } |
189 | 189 |
190 IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetServiceStatus) { | 190 IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetServiceStatus) { |
191 mock_remote_service()->SetServiceState( | 191 mock_remote_service()->SetServiceState( |
192 sync_file_system::REMOTE_SERVICE_AUTHENTICATION_REQUIRED); | 192 sync_file_system::REMOTE_SERVICE_AUTHENTICATION_REQUIRED); |
193 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/get_service_status")) | 193 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/get_service_status")) |
194 << message_; | 194 << message_; |
195 } | 195 } |
OLD | NEW |