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

Unified Diff: chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc

Issue 8395029: Merge 106373 - Prevent crash by posting a task to call unrecoverable error handler. The task is p... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/glue/extension_data_type_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
===================================================================
--- chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc (revision 107252)
+++ chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc (working copy)
@@ -90,6 +90,10 @@
ModelAssociatorMock* model_associator_;
ChangeProcessorMock* change_processor_;
StartCallback start_callback_;
+
+ void PumpLoop() {
+ message_loop_.RunAllPending();
+ }
};
TEST_F(BookmarkDataTypeControllerTest, StartBookmarkModelReady) {
@@ -217,4 +221,5 @@
bookmark_dtc_->Start(NewCallback(&start_callback_, &StartCallback::Run));
// This should cause bookmark_dtc_->Stop() to be called.
bookmark_dtc_->OnUnrecoverableError(FROM_HERE, "Test");
+ PumpLoop();
}
« no previous file with comments | « no previous file | chrome/browser/sync/glue/extension_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698