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/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/history_backend.h" | 19 #include "chrome/browser/history/history_backend.h" |
20 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
21 #include "chrome/common/chrome_constants.h" | 21 #include "chrome/common/chrome_constants.h" |
22 #include "chrome/test/base/testing_browser_process.h" | 22 #include "chrome/test/base/testing_browser_process.h" |
23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
24 #include "chrome/test/base/testing_profile_manager.h" | 24 #include "chrome/test/base/testing_profile_manager.h" |
25 #include "components/bookmarks/core/browser/bookmark_model.h" | 25 #include "components/bookmarks/browser/bookmark_model.h" |
26 #include "components/bookmarks/core/test/bookmark_test_helpers.h" | 26 #include "components/bookmarks/test/bookmark_test_helpers.h" |
27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/test/test_browser_thread.h" | 28 #include "content/public/test/test_browser_thread.h" |
29 #include "content/public/test/test_utils.h" | 29 #include "content/public/test/test_utils.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using base::Time; | 32 using base::Time; |
33 using base::TimeDelta; | 33 using base::TimeDelta; |
34 using base::UTF8ToUTF16; | 34 using base::UTF8ToUTF16; |
35 using content::BrowserThread; | 35 using content::BrowserThread; |
36 | 36 |
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 update_args, &update_count)); | 2059 update_args, &update_count)); |
2060 // Verify notifications. | 2060 // Verify notifications. |
2061 EXPECT_FALSE(delegate_.deleted_details()); | 2061 EXPECT_FALSE(delegate_.deleted_details()); |
2062 ASSERT_TRUE(delegate_.modified_details()); | 2062 ASSERT_TRUE(delegate_.modified_details()); |
2063 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); | 2063 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); |
2064 // No favicon will be updated as thumbnail database is missing. | 2064 // No favicon will be updated as thumbnail database is missing. |
2065 EXPECT_FALSE(delegate_.favicon_details()); | 2065 EXPECT_FALSE(delegate_.favicon_details()); |
2066 } | 2066 } |
2067 | 2067 |
2068 } // namespace history | 2068 } // namespace history |
OLD | NEW |