diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 05:59:37 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 05:59:37 +0000 |
commit | 6fad26338ed6119903826156f307e20fe6657c31 (patch) | |
tree | 5c6baed35fce907a0cea47ed6091c941db8ebfd1 /chrome/browser/views/bookmark_editor_view_unittest.cc | |
parent | f75c8f13b967b01babc9454506e9d2ed00519e39 (diff) | |
download | chromium_src-6fad26338ed6119903826156f307e20fe6657c31.zip chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.gz chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.bz2 |
Third patch in getting rid of caching MessageLoop pointers and always using ChromeThread instead.
BUG=25354
Review URL: http://codereview.chromium.org/342068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_editor_view_unittest.cc')
-rw-r--r-- | chrome/browser/views/bookmark_editor_view_unittest.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_editor_view_unittest.cc b/chrome/browser/views/bookmark_editor_view_unittest.cc index 9e2ae40..a43a928 100644 --- a/chrome/browser/views/bookmark_editor_view_unittest.cc +++ b/chrome/browser/views/bookmark_editor_view_unittest.cc @@ -2,8 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/message_loop.h" #include "base/string_util.h" #include "chrome/browser/bookmarks/bookmark_model.h" +#include "chrome/browser/chrome_thread.h" #include "chrome/browser/profile.h" #include "chrome/browser/views/bookmark_editor_view.h" #include "chrome/common/pref_names.h" @@ -18,7 +20,10 @@ using base::TimeDelta; // it with test data. class BookmarkEditorViewTest : public testing::Test { public: - BookmarkEditorViewTest() : model_(NULL) { + BookmarkEditorViewTest() + : model_(NULL), + ui_thread_(ChromeThread::UI, &message_loop_), + file_thread_(ChromeThread::FILE, &message_loop_) { } virtual void SetUp() { @@ -27,6 +32,7 @@ class BookmarkEditorViewTest : public testing::Test { profile_->CreateBookmarkModel(true); model_ = profile_->GetBookmarkModel(); + profile_->BlockUntilBookmarkModelLoaded(); AddTestData(); } @@ -117,6 +123,8 @@ class BookmarkEditorViewTest : public testing::Test { } scoped_ptr<BookmarkEditorView> editor_; + ChromeThread ui_thread_; + ChromeThread file_thread_; }; // Makes sure the tree model matches that of the bookmark bar model. |