| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/net/gaia/token_service.h" | 9 #include "chrome/browser/net/gaia/token_service.h" |
| 10 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" | 10 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" |
| 11 #include "chrome/browser/sync/glue/data_type_controller.h" | 11 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 12 #include "chrome/browser/sync/js/js_arg_list.h" | 12 #include "chrome/browser/sync/js/js_arg_list.h" |
| 13 #include "chrome/browser/sync/js/js_event_details.h" | 13 #include "chrome/browser/sync/js/js_event_details.h" |
| 14 #include "chrome/browser/sync/js/js_test_util.h" | 14 #include "chrome/browser/sync/js/js_test_util.h" |
| 15 #include "chrome/browser/sync/profile_sync_factory_mock.h" | 15 #include "chrome/browser/sync/profile_sync_factory_mock.h" |
| 16 #include "chrome/browser/sync/test_profile_sync_service.h" | 16 #include "chrome/browser/sync/test_profile_sync_service.h" |
| 17 #include "chrome/common/net/gaia/gaia_constants.h" | 17 #include "chrome/common/net/gaia/gaia_constants.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "chrome/test/base/testing_browser_process_test.h" |
| 19 #include "chrome/test/base/testing_pref_service.h" | 20 #include "chrome/test/base/testing_pref_service.h" |
| 20 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
| 21 #include "chrome/test/testing_browser_process_test.h" | |
| 22 #include "content/browser/browser_thread.h" | 22 #include "content/browser/browser_thread.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 // TODO(akalin): Add tests here that exercise the whole | 26 // TODO(akalin): Add tests here that exercise the whole |
| 27 // ProfileSyncService/SyncBackendHost stack while mocking out as | 27 // ProfileSyncService/SyncBackendHost stack while mocking out as |
| 28 // little as possible. | 28 // little as possible. |
| 29 | 29 |
| 30 namespace browser_sync { | 30 namespace browser_sync { |
| 31 | 31 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // This will still exist, but the text should have changed. | 279 // This will still exist, but the text should have changed. |
| 280 ASSERT_TRUE(file_util::PathExists(sync_file2)); | 280 ASSERT_TRUE(file_util::PathExists(sync_file2)); |
| 281 std::string file2text; | 281 std::string file2text; |
| 282 ASSERT_TRUE(file_util::ReadFileToString(sync_file2, &file2text)); | 282 ASSERT_TRUE(file_util::ReadFileToString(sync_file2, &file2text)); |
| 283 ASSERT_NE(file2text.compare(nonsense2), 0); | 283 ASSERT_NE(file2text.compare(nonsense2), 0); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace | 286 } // namespace |
| 287 | 287 |
| 288 } // namespace browser_sync | 288 } // namespace browser_sync |
| OLD | NEW |