| OLD | NEW |
| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 scoped_refptr<HistoryBackend> history_backend_; | 188 scoped_refptr<HistoryBackend> history_backend_; |
| 189 HistoryDatabase history_db_; | 189 HistoryDatabase history_db_; |
| 190 ThumbnailDatabase thumbnail_db_; | 190 ThumbnailDatabase thumbnail_db_; |
| 191 base::ScopedTempDir temp_dir_; | 191 base::ScopedTempDir temp_dir_; |
| 192 base::FilePath android_cache_db_name_; | 192 base::FilePath android_cache_db_name_; |
| 193 base::FilePath history_db_name_; | 193 base::FilePath history_db_name_; |
| 194 base::FilePath thumbnail_db_name_; | 194 base::FilePath thumbnail_db_name_; |
| 195 | 195 |
| 196 TestingProfileManager profile_manager_; | 196 TestingProfileManager profile_manager_; |
| 197 BookmarkModel* bookmark_model_; | 197 BookmarkModel* bookmark_model_; |
| 198 MessageLoopForUI message_loop_; | 198 base::MessageLoopForUI message_loop_; |
| 199 content::TestBrowserThread ui_thread_; | 199 content::TestBrowserThread ui_thread_; |
| 200 content::TestBrowserThread file_thread_; | 200 content::TestBrowserThread file_thread_; |
| 201 | 201 |
| 202 | 202 |
| 203 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendTest); | 203 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendTest); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 TEST_F(AndroidProviderBackendTest, UpdateTables) { | 206 TEST_F(AndroidProviderBackendTest, UpdateTables) { |
| 207 GURL url1("http://www.cnn.com"); | 207 GURL url1("http://www.cnn.com"); |
| 208 URLID url_id1 = 0; | 208 URLID url_id1 = 0; |
| (...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2070 update_args, &update_count)); | 2070 update_args, &update_count)); |
| 2071 // Verify notifications. | 2071 // Verify notifications. |
| 2072 EXPECT_FALSE(delegate_.deleted_details()); | 2072 EXPECT_FALSE(delegate_.deleted_details()); |
| 2073 ASSERT_TRUE(delegate_.modified_details()); | 2073 ASSERT_TRUE(delegate_.modified_details()); |
| 2074 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); | 2074 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); |
| 2075 // No favicon will be updated as thumbnail database is missing. | 2075 // No favicon will be updated as thumbnail database is missing. |
| 2076 EXPECT_FALSE(delegate_.favicon_details()); | 2076 EXPECT_FALSE(delegate_.favicon_details()); |
| 2077 } | 2077 } |
| 2078 | 2078 |
| 2079 } // namespace history | 2079 } // namespace history |
| OLD | NEW |