[Android] Add StopWatchingAll() for test case ThreadWatcherAndroidTest.ApplicationSta...
commit77aab6569cad38751782993fb255ba505ce70484
authorguanxian.li <guanxian.li@intel.com>
Tue, 16 Jun 2015 02:50:26 +0000 (15 19:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 02:51:00 +0000 (16 02:51 +0000)
tree9ed42226b0a1d9c621fb5e0a93ab758a51638126
parent01f5402fb03ace8565db3c72cbdb655d9bc4fda0
[Android] Add StopWatchingAll() for test case ThreadWatcherAndroidTest.ApplicationStatusNotification

ThreadWatcherList::StartWatchingAll creates one static object ThreadWatcherObserver
called g_thread_watcher_observer_. This should be released by ThreadWatcherList::StopWatchingAll.
Like the case ThreadWatcherListTest.Restart at chrome/browser/metrics/thread_watcher_unittest.cc.
If not released, CHECK(!g_thread_watcher_observer_) in constructor of ThreadWatcherObserver would
be failed when running case ThreadWatcherListTest.Restart after this case.

BUG=499723

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

Cr-Commit-Position: refs/heads/master@{#334532}
chrome/browser/metrics/thread_watcher_android_unittest.cc