| 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" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "content/public/test/test_browser_thread.h" | 32 #include "content/public/test/test_browser_thread.h" |
| 33 #include "content/public/test/test_utils.h" | 33 #include "content/public/test/test_utils.h" |
| 34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
| 35 #include "third_party/skia/include/core/SkBitmap.h" | 35 #include "third_party/skia/include/core/SkBitmap.h" |
| 36 | 36 |
| 37 using base::Time; | 37 using base::Time; |
| 38 using base::TimeDelta; | 38 using base::TimeDelta; |
| 39 using base::UTF8ToUTF16; | 39 using base::UTF8ToUTF16; |
| 40 using bookmarks::BookmarkModel; | 40 using bookmarks::BookmarkModel; |
| 41 using bookmarks::BookmarkNode; |
| 41 using content::BrowserThread; | 42 using content::BrowserThread; |
| 42 | 43 |
| 43 namespace history { | 44 namespace history { |
| 44 | 45 |
| 45 namespace { | 46 namespace { |
| 46 | 47 |
| 47 struct BookmarkCacheRow { | 48 struct BookmarkCacheRow { |
| 48 public: | 49 public: |
| 49 BookmarkCacheRow() | 50 BookmarkCacheRow() |
| 50 : url_id_(0), | 51 : url_id_(0), |
| (...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 update_args, &update_count)); | 2148 update_args, &update_count)); |
| 2148 // Verify notifications. | 2149 // Verify notifications. |
| 2149 EXPECT_FALSE(notifier_.deleted_details()); | 2150 EXPECT_FALSE(notifier_.deleted_details()); |
| 2150 ASSERT_TRUE(notifier_.modified_details()); | 2151 ASSERT_TRUE(notifier_.modified_details()); |
| 2151 ASSERT_EQ(1u, notifier_.modified_details()->size()); | 2152 ASSERT_EQ(1u, notifier_.modified_details()->size()); |
| 2152 // No favicon will be updated as thumbnail database is missing. | 2153 // No favicon will be updated as thumbnail database is missing. |
| 2153 EXPECT_FALSE(notifier_.favicon_changed()); | 2154 EXPECT_FALSE(notifier_.favicon_changed()); |
| 2154 } | 2155 } |
| 2155 | 2156 |
| 2156 } // namespace history | 2157 } // namespace history |
| OLD | NEW |