|
Revert 238348 "Clean up TestProfileSyncService and related tests"
This CL appeared to be the cause of a link failure on Win dbg: http://goo.gl/PTFpFF
> Clean up TestProfileSyncService and related tests
>
> This CL refactors many of the tests in profile_sync_service_unittest.cc.
> It continues the refactoring work begun in r233533, r235661, and
> r235854.
>
> The JsController tests have been deleted. There is not much point in
> testing the JsController here; it can be more easily tested on its own
> in sync_js_controller_uniittest.cc. The SyncJsController unit tests
> have been updated so they now cover the few cases that were formerly
> only exercised in the ProfileSyncService unit tests.
>
> It converts all remaining uncoverted tests from relying on the
> TestProfileSyncService to using a real ProfileSyncService with an
> injected backend. The injected backend makes it easier to create the
> scenarios we want to test. We can inject a specially crafted SBH rather
> than fiddling with "synchronous init" and "fail initial download" flags.
>
> Since the TestProfileSyncService no longer needs to support the wide
> variety of test scenarios required by the tests in
> profile_sync_service_unittest.cc, we can greatly simplify its
> implementation. Many of its parameters and associated code have been
> removed.
>
> BUG= 140354, 312994
>
> Review URL: https://codereview.chromium.org/67683005
TBR=rlarocque@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238368
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+519 lines, -129 lines) |
Patch |
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_preference_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_session_unittest.cc
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/profile_sync_service_unittest.cc
|
View
|
|
13 chunks |
+226 lines, -41 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/test_profile_sync_service.h
|
View
|
|
6 chunks |
+83 lines, -6 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/sync/test_profile_sync_service.cc
|
View
|
|
8 chunks |
+147 lines, -16 lines |
0 comments
|
Download
|
 |
M |
trunk/src/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/src/sync/internal_api/public/test/sync_manager_factory_for_profile_sync_test.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/src/sync/internal_api/test/sync_manager_factory_for_profile_sync_test.cc
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
trunk/src/sync/internal_api/test/sync_manager_for_profile_sync_test.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/src/sync/internal_api/test/sync_manager_for_profile_sync_test.cc
|
View
|
|
2 chunks |
+15 lines, -9 lines |
0 comments
|
Download
|
 |
M |
trunk/src/sync/js/sync_js_controller_unittest.cc
|
View
|
|
4 chunks |
+17 lines, -38 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|