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/drive_backend_v1/drive_file_sync_servi
ce.h" | 10 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_servi
ce.h" |
11 #include "chrome/browser/sync_file_system/file_status_observer.h" | 11 #include "chrome/browser/sync_file_system/file_status_observer.h" |
12 #include "chrome/browser/sync_file_system/local_change_processor.h" | 12 #include "chrome/browser/sync_file_system/local_change_processor.h" |
13 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" | 13 #include "chrome/browser/sync_file_system/mock_remote_file_sync_service.h" |
14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
16 #include "chrome/browser/sync_file_system/sync_status_code.h" | 16 #include "chrome/browser/sync_file_system/sync_status_code.h" |
17 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 17 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
18 #include "chrome/common/chrome_version_info.h" | 18 #include "chrome/common/chrome_version_info.h" |
19 #include "chrome/test/base/test_switches.h" | 19 #include "chrome/test/base/test_switches.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "webkit/browser/fileapi/file_system_url.h" | 22 #include "storage/browser/fileapi/file_system_url.h" |
23 #include "webkit/browser/quota/quota_manager.h" | 23 #include "storage/browser/quota/quota_manager.h" |
24 | 24 |
25 using ::testing::_; | 25 using ::testing::_; |
26 using ::testing::Eq; | 26 using ::testing::Eq; |
27 using ::testing::Ne; | 27 using ::testing::Ne; |
28 using ::testing::Property; | 28 using ::testing::Property; |
29 using ::testing::Return; | 29 using ::testing::Return; |
30 using fileapi::FileSystemURL; | 30 using storage::FileSystemURL; |
31 using sync_file_system::MockRemoteFileSyncService; | 31 using sync_file_system::MockRemoteFileSyncService; |
32 using sync_file_system::RemoteFileSyncService; | 32 using sync_file_system::RemoteFileSyncService; |
33 using sync_file_system::SyncFileSystemServiceFactory; | 33 using sync_file_system::SyncFileSystemServiceFactory; |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 class SyncFileSystemApiTest : public ExtensionApiTest { | 37 class SyncFileSystemApiTest : public ExtensionApiTest { |
38 public: | 38 public: |
39 SyncFileSystemApiTest() | 39 SyncFileSystemApiTest() |
40 : mock_remote_service_(NULL), | 40 : mock_remote_service_(NULL), |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/conflict_resolution_policy")) | 185 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/conflict_resolution_policy")) |
186 << message_; | 186 << message_; |
187 } | 187 } |
188 | 188 |
189 IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetServiceStatus) { | 189 IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetServiceStatus) { |
190 mock_remote_service()->SetServiceState( | 190 mock_remote_service()->SetServiceState( |
191 sync_file_system::REMOTE_SERVICE_AUTHENTICATION_REQUIRED); | 191 sync_file_system::REMOTE_SERVICE_AUTHENTICATION_REQUIRED); |
192 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/get_service_status")) | 192 ASSERT_TRUE(RunPlatformAppTest("sync_file_system/get_service_status")) |
193 << message_; | 193 << message_; |
194 } | 194 } |
OLD | NEW |