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

Side by Side Diff: chrome/browser/ui/app_list/search/history_data_store_unittest.cc

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 private: 84 private:
85 void OnRead(scoped_ptr<HistoryData::Associations> associations) { 85 void OnRead(scoped_ptr<HistoryData::Associations> associations) {
86 associations_.clear(); 86 associations_.clear();
87 if (associations) 87 if (associations)
88 associations->swap(associations_); 88 associations->swap(associations_);
89 89
90 if (run_loop_) 90 if (run_loop_)
91 run_loop_->Quit(); 91 run_loop_->Quit();
92 } 92 }
93 93
94 MessageLoopForUI message_loop_; 94 base::MessageLoopForUI message_loop_;
95 content::TestBrowserThread ui_thread_; 95 content::TestBrowserThread ui_thread_;
96 base::ScopedTempDir temp_dir_; 96 base::ScopedTempDir temp_dir_;
97 base::FilePath data_file_; 97 base::FilePath data_file_;
98 scoped_ptr<base::RunLoop> run_loop_; 98 scoped_ptr<base::RunLoop> run_loop_;
99 99
100 scoped_refptr<HistoryDataStore> store_; 100 scoped_refptr<HistoryDataStore> store_;
101 HistoryData::Associations associations_; 101 HistoryData::Associations associations_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(HistoryDataStoreTest); 103 DISALLOW_COPY_AND_ASSIGN(HistoryDataStoreTest);
104 }; 104 };
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 EXPECT_EQ(now, it->second.update_time); 171 EXPECT_EQ(now, it->second.update_time);
172 172
173 store()->Delete(kQuery); 173 store()->Delete(kQuery);
174 Flush(); 174 Flush();
175 Load(); 175 Load();
176 EXPECT_TRUE(associations().empty()); 176 EXPECT_TRUE(associations().empty());
177 } 177 }
178 178
179 } // namespace test 179 } // namespace test
180 } // namespace app_list 180 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/ui_model_worker.cc ('k') | chrome/browser/ui/app_list/search/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698