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

Unified Diff: chrome/browser/history/in_memory_url_index_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/history/redirect_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/in_memory_url_index_unittest.cc
diff --git a/chrome/browser/history/in_memory_url_index_unittest.cc b/chrome/browser/history/in_memory_url_index_unittest.cc
index 7de8e8c84135b8e924d8965436fa6640e03b6458..2e0b2581048b5190aecb17b2ff60adb2b717a264 100644
--- a/chrome/browser/history/in_memory_url_index_unittest.cc
+++ b/chrome/browser/history/in_memory_url_index_unittest.cc
@@ -54,15 +54,15 @@ namespace history {
// Observer class so the unit tests can wait while the cache is being saved.
class CacheFileSaverObserver : public InMemoryURLIndex::SaveCacheObserver {
public:
- explicit CacheFileSaverObserver(MessageLoop* loop);
+ explicit CacheFileSaverObserver(base::MessageLoop* loop);
virtual void OnCacheSaveFinished(bool succeeded) OVERRIDE;
- MessageLoop* loop_;
+ base::MessageLoop* loop_;
bool succeeded_;
DISALLOW_COPY_AND_ASSIGN(CacheFileSaverObserver);
};
-CacheFileSaverObserver::CacheFileSaverObserver(MessageLoop* loop)
+CacheFileSaverObserver::CacheFileSaverObserver(base::MessageLoop* loop)
: loop_(loop),
succeeded_(false) {
DCHECK(loop);
@@ -118,7 +118,7 @@ class InMemoryURLIndexTest : public testing::Test {
void ExpectPrivateDataEqual(const URLIndexPrivateData& expected,
const URLIndexPrivateData& actual);
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
TestingProfile profile_;
@@ -1038,7 +1038,7 @@ TEST_F(InMemoryURLIndexTest, CacheSaveRestore) {
EXPECT_TRUE(private_data.word_starts_map_.empty());
HistoryIndexRestoreObserver restore_observer(
- base::Bind(&MessageLoop::Quit, base::Unretained(&message_loop_)));
+ base::Bind(&base::MessageLoop::Quit, base::Unretained(&message_loop_)));
url_index_->set_restore_cache_observer(&restore_observer);
PostRestoreFromCacheFileTask();
message_loop_.Run();
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/history/redirect_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698