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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.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/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
16 #include "chrome/browser/history/chrome_history_client.h" | 17 #include "chrome/browser/history/chrome_history_client.h" |
17 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
18 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/test/base/testing_browser_process.h" | 20 #include "chrome/test/base/testing_browser_process.h" |
20 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
21 #include "chrome/test/base/testing_profile_manager.h" | 22 #include "chrome/test/base/testing_profile_manager.h" |
(...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 update_args, &update_count)); | 2161 update_args, &update_count)); |
2161 // Verify notifications. | 2162 // Verify notifications. |
2162 EXPECT_FALSE(notifier_.deleted_details()); | 2163 EXPECT_FALSE(notifier_.deleted_details()); |
2163 ASSERT_TRUE(notifier_.modified_details()); | 2164 ASSERT_TRUE(notifier_.modified_details()); |
2164 ASSERT_EQ(1u, notifier_.modified_details()->size()); | 2165 ASSERT_EQ(1u, notifier_.modified_details()->size()); |
2165 // No favicon will be updated as thumbnail database is missing. | 2166 // No favicon will be updated as thumbnail database is missing. |
2166 EXPECT_FALSE(notifier_.favicon_changed()); | 2167 EXPECT_FALSE(notifier_.favicon_changed()); |
2167 } | 2168 } |
2168 | 2169 |
2169 } // namespace history | 2170 } // namespace history |
OLD | NEW |