[BackgroundSync] Clean up some tests
commit6988e2530e4f016e718055040a0bee9cdfe6c0f8
authorjkarlin <jkarlin@chromium.org>
Fri, 5 Jun 2015 17:01:18 +0000 (5 10:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Jun 2015 17:01:54 +0000 (5 17:01 +0000)
tree8f79f680e6778e38fe632c10a5fa15034f941415
parentad89643990d9b2320960d1912695cc1418a3fdab
[BackgroundSync] Clean up some tests

Cleaning up some tests to use helper functions and remove dangling
pointers. It also fixes the DisabledManagerWorksAfterBrowserRestart
test which wasn't initializing after creating a new manager.

Review URL: https://codereview.chromium.org/1148853005

Cr-Commit-Position: refs/heads/master@{#333074}
content/browser/background_sync/background_sync_manager_unittest.cc