Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 98323003: Revert 238348 "Clean up TestProfileSyncService and related tests" (Closed)

Created:
7 years ago by Patrick Dubroy
Modified:
7 years ago
Reviewers:
rlarocque
CC:
chromium-reviews
Visibility:
Public.

Description

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

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
Patrick Dubroy
7 years ago (2013-12-03 12:24:59 UTC) #1
Patrick Dubroy
Committed patchset #1 manually as r238368.
7 years ago (2013-12-03 12:25:20 UTC) #2
rlarocque
I know this sounds crazy, but I'm strongly inclined to blame the buildbot for that ...
7 years ago (2013-12-03 18:04:12 UTC) #3
Patrick Dubroy
7 years ago (2013-12-03 19:24:25 UTC) #4
Possible...feel free to re-land. I was just operating under the rule of
"revert first, ask questions later" :-)

Pat


On Tue, Dec 3, 2013 at 7:04 PM, <rlarocque@chromium.org> wrote:

> I know this sounds crazy, but I'm strongly inclined to blame the buildbot
> for
> that failure.
>
> My patch removes all instances of that symbol.  I'm unable to find the
> string
> "GetBackendForTest" anywhere in the code base once my patch is applied.
>
> I don't know where the compiler got the idea to look for such a symbol,
> but it
> certainly didn't get it from the code as written.  It must have been a
> stale
> object file from a previous build.
>
> https://codereview.chromium.org/98323003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698