Ensure that SequencedWorkerPools in tests don't outlive their tests

This prevents strange races with other tests.

Add an OnDestroy() method to SequencedWorkerPool::TestingObserver().

Fix a bug where one test wasn't calling Shutdown() on its
WorkerPools.

Fix a deadlock if a Worker object releases the last ref to the WorkerPool.

BUG=115987
TEST=


Review URL: http://codereview.chromium.org/9558007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125152 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 71b18fbce8dee85bf5c07ca835e2f679fbff50ff
3 files changed
tree: b3138245bc559f0afe94a3f77d493b1983ce5bbb
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/