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" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/bookmarks/bookmark_model.h" | 15 #include "chrome/browser/bookmarks/bookmark_model.h" |
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
17 #include "chrome/browser/bookmarks/bookmark_service.h" | 17 #include "chrome/browser/bookmarks/bookmark_service.h" |
18 #include "chrome/browser/favicon/favicon_changed_details.h" | 18 #include "chrome/browser/favicon/favicon_changed_details.h" |
19 #include "chrome/browser/history/android/android_time.h" | 19 #include "chrome/browser/history/android/android_time.h" |
20 #include "chrome/browser/history/history_backend.h" | 20 #include "chrome/browser/history/history_backend.h" |
21 #include "chrome/browser/profiles/profile_manager.h" | 21 #include "chrome/browser/profiles/profile_manager.h" |
22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/chrome_notification_types.h" | 23 #include "chrome/common/chrome_notification_types.h" |
24 #include "chrome/test/base/testing_browser_process.h" | 24 #include "chrome/test/base/testing_browser_process.h" |
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |