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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/history/url_database.h" | 10 #include "components/history/core/browser/keyword_search_term.h" |
| 11 #include "components/history/core/browser/url_database.h" |
11 #include "sql/connection.h" | 12 #include "sql/connection.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 using base::Time; | 15 using base::Time; |
15 using base::TimeDelta; | 16 using base::TimeDelta; |
16 | 17 |
17 namespace history { | 18 namespace history { |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 ASSERT_EQ(1u, rows.size()); | 327 ASSERT_EQ(1u, rows.size()); |
327 EXPECT_EQ(keyword2, rows[0].term); | 328 EXPECT_EQ(keyword2, rows[0].term); |
328 EXPECT_EQ(url_id3, rows[0].url_id); | 329 EXPECT_EQ(url_id3, rows[0].url_id); |
329 rows.clear(); | 330 rows.clear(); |
330 // No row for keyword. | 331 // No row for keyword. |
331 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows)); | 332 ASSERT_TRUE(GetKeywordSearchTermRows(keyword, &rows)); |
332 EXPECT_TRUE(rows.empty()); | 333 EXPECT_TRUE(rows.empty()); |
333 } | 334 } |
334 | 335 |
335 } // namespace history | 336 } // namespace history |
OLD | NEW |