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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/signin/signin_manager.h" | 9 #include "chrome/browser/signin/signin_manager.h" |
10 #include "chrome/browser/signin/signin_manager_factory.h" | 10 #include "chrome/browser/signin/signin_manager_factory.h" |
11 #include "chrome/browser/signin/token_service.h" | 11 #include "chrome/browser/signin/token_service.h" |
12 #include "chrome/browser/signin/token_service_factory.h" | 12 #include "chrome/browser/signin/token_service_factory.h" |
13 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" | 13 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" |
14 #include "chrome/browser/sync/glue/data_type_controller.h" | 14 #include "chrome/browser/sync/glue/data_type_controller.h" |
15 #include "chrome/browser/sync/js/js_arg_list.h" | |
16 #include "chrome/browser/sync/js/js_event_details.h" | |
17 #include "chrome/browser/sync/js/js_test_util.h" | |
18 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" | 15 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" |
19 #include "chrome/browser/sync/test_profile_sync_service.h" | 16 #include "chrome/browser/sync/test_profile_sync_service.h" |
20 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
21 #include "chrome/common/net/gaia/gaia_constants.h" | 18 #include "chrome/common/net/gaia/gaia_constants.h" |
22 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
23 #include "chrome/test/base/testing_pref_service.h" | 20 #include "chrome/test/base/testing_pref_service.h" |
24 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
25 #include "content/test/test_browser_thread.h" | 22 #include "content/test/test_browser_thread.h" |
| 23 #include "sync/js/js_arg_list.h" |
| 24 #include "sync/js/js_event_details.h" |
| 25 #include "sync/js/js_test_util.h" |
26 #include "testing/gmock/include/gmock/gmock.h" | 26 #include "testing/gmock/include/gmock/gmock.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "webkit/glue/user_agent.h" | 28 #include "webkit/glue/user_agent.h" |
29 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
30 | 30 |
31 // TODO(akalin): Add tests here that exercise the whole | 31 // TODO(akalin): Add tests here that exercise the whole |
32 // ProfileSyncService/SyncBackendHost stack while mocking out as | 32 // ProfileSyncService/SyncBackendHost stack while mocking out as |
33 // little as possible. | 33 // little as possible. |
34 | 34 |
35 namespace browser_sync { | 35 namespace browser_sync { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // The backend is not ready. Ensure the PSS knows this. | 375 // The backend is not ready. Ensure the PSS knows this. |
376 EXPECT_FALSE(service_->sync_initialized()); | 376 EXPECT_FALSE(service_->sync_initialized()); |
377 | 377 |
378 // Ensure we will be prepared to initialize a fresh DB next time. | 378 // Ensure we will be prepared to initialize a fresh DB next time. |
379 EXPECT_FALSE(service_->HasSyncSetupCompleted()); | 379 EXPECT_FALSE(service_->HasSyncSetupCompleted()); |
380 } | 380 } |
381 | 381 |
382 } // namespace | 382 } // namespace |
383 | 383 |
384 } // namespace browser_sync | 384 } // namespace browser_sync |
OLD | NEW |