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

Unified Diff: chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc

Issue 12929016: bookmarks: Get rid of TestingProfile::BlockUntilBookmarkModelLoaded(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 9 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
Index: chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc
diff --git a/chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc b/chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc
index 84a80a3d46016b5ffe3b0a6e72064d229eb16cea..bbcc1e372c241188c79d3e3b62a30a04a028f455 100644
--- a/chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc
+++ b/chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc
@@ -46,13 +46,13 @@ class BookmarkModelSQLHandlerTest : public testing::Test {
chrome::kInitialProfile);
// Create the BookmarkModel that doesn't need to invoke load().
testing_profile->CreateBookmarkModel(true);
- testing_profile->BlockUntilBookmarkModelLoaded();
+ bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile);
+ ui_test_utils::WaitForBookmarkModelToLoad(bookmark_model_);
+ ASSERT_TRUE(bookmark_model_);
// Get the BookmarkModel from LastUsedProfile, this is the same way that
// how the BookmarkModelSQLHandler gets the BookmarkModel.
Profile* profile = ProfileManager::GetLastUsedProfile();
ASSERT_TRUE(profile);
- bookmark_model_ = BookmarkModelFactory::GetForProfile(profile);
- ASSERT_TRUE(bookmark_model_);
// Create the directory for history database.
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());

Powered by Google App Engine
This is Rietveld 408576698