| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "app/sql/connection.h" | 5 #include "app/sql/connection.h" |
| 6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_temp_dir.h" | |
| 9 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/history/url_database.h" | 12 #include "chrome/browser/history/url_database.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using base::Time; | 15 using base::Time; |
| 16 using base::TimeDelta; | 16 using base::TimeDelta; |
| 17 | 17 |
| 18 namespace history { | 18 namespace history { |
| 19 | 19 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 IconMappingEnumerator e; | 261 IconMappingEnumerator e; |
| 262 InitIconMappingEnumeratorForEverything(&e); | 262 InitIconMappingEnumeratorForEverything(&e); |
| 263 IconMapping icon_mapping; | 263 IconMapping icon_mapping; |
| 264 ASSERT_TRUE(e.GetNextIconMapping(&icon_mapping)); | 264 ASSERT_TRUE(e.GetNextIconMapping(&icon_mapping)); |
| 265 ASSERT_EQ(url1, icon_mapping.page_url); | 265 ASSERT_EQ(url1, icon_mapping.page_url); |
| 266 ASSERT_EQ(icon_id, icon_mapping.icon_id); | 266 ASSERT_EQ(icon_id, icon_mapping.icon_id); |
| 267 ASSERT_FALSE(e.GetNextIconMapping(&icon_mapping)); | 267 ASSERT_FALSE(e.GetNextIconMapping(&icon_mapping)); |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace history | 270 } // namespace history |
| OLD | NEW |