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" | |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.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/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/favicon/favicon_changed_details.h" | 17 #include "chrome/browser/favicon/favicon_changed_details.h" |
18 #include "chrome/browser/history/android/android_time.h" | 18 #include "chrome/browser/history/android/android_time.h" |
19 #include "chrome/browser/history/chrome_history_client.h" | 19 #include "chrome/browser/history/chrome_history_client.h" |
20 #include "chrome/browser/history/chrome_history_client_factory.h" | 20 #include "chrome/browser/history/chrome_history_client_factory.h" |
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2126 update_args, &update_count)); | 2126 update_args, &update_count)); |
2127 // Verify notifications. | 2127 // Verify notifications. |
2128 EXPECT_FALSE(delegate_.deleted_details()); | 2128 EXPECT_FALSE(delegate_.deleted_details()); |
2129 ASSERT_TRUE(delegate_.modified_details()); | 2129 ASSERT_TRUE(delegate_.modified_details()); |
2130 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); | 2130 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); |
2131 // No favicon will be updated as thumbnail database is missing. | 2131 // No favicon will be updated as thumbnail database is missing. |
2132 EXPECT_FALSE(delegate_.favicon_details()); | 2132 EXPECT_FALSE(delegate_.favicon_details()); |
2133 } | 2133 } |
2134 | 2134 |
2135 } // namespace history | 2135 } // namespace history |
OLD | NEW |