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

Side by Side Diff: chrome/browser/history/android/android_provider_backend_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, 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/history/android/android_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scoped_refptr<HistoryBackend> history_backend_; 189 scoped_refptr<HistoryBackend> history_backend_;
190 HistoryDatabase history_db_; 190 HistoryDatabase history_db_;
191 ThumbnailDatabase thumbnail_db_; 191 ThumbnailDatabase thumbnail_db_;
192 base::ScopedTempDir temp_dir_; 192 base::ScopedTempDir temp_dir_;
193 base::FilePath android_cache_db_name_; 193 base::FilePath android_cache_db_name_;
194 base::FilePath history_db_name_; 194 base::FilePath history_db_name_;
195 base::FilePath thumbnail_db_name_; 195 base::FilePath thumbnail_db_name_;
196 196
197 TestingProfileManager profile_manager_; 197 TestingProfileManager profile_manager_;
198 BookmarkModel* bookmark_model_; 198 BookmarkModel* bookmark_model_;
199 MessageLoopForUI message_loop_; 199 base::MessageLoopForUI message_loop_;
200 content::TestBrowserThread ui_thread_; 200 content::TestBrowserThread ui_thread_;
201 content::TestBrowserThread file_thread_; 201 content::TestBrowserThread file_thread_;
202 202
203 203
204 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendTest); 204 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendTest);
205 }; 205 };
206 206
207 TEST_F(AndroidProviderBackendTest, UpdateTables) { 207 TEST_F(AndroidProviderBackendTest, UpdateTables) {
208 GURL url1("http://www.cnn.com"); 208 GURL url1("http://www.cnn.com");
209 URLID url_id1 = 0; 209 URLID url_id1 = 0;
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
2071 update_args, &update_count)); 2071 update_args, &update_count));
2072 // Verify notifications. 2072 // Verify notifications.
2073 EXPECT_FALSE(delegate_.deleted_details()); 2073 EXPECT_FALSE(delegate_.deleted_details());
2074 ASSERT_TRUE(delegate_.modified_details()); 2074 ASSERT_TRUE(delegate_.modified_details());
2075 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); 2075 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size());
2076 // No favicon will be updated as thumbnail database is missing. 2076 // No favicon will be updated as thumbnail database is missing.
2077 EXPECT_FALSE(delegate_.favicon_details()); 2077 EXPECT_FALSE(delegate_.favicon_details());
2078 } 2078 }
2079 2079
2080 } // namespace history 2080 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698