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" | |
6 #include "base/file_path.h" | 5 #include "base/file_path.h" |
7 #include "base/file_util.h" | 6 #include "base/file_util.h" |
8 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/history/text_database_manager.h" | 9 #include "chrome/browser/history/text_database_manager.h" |
11 #include "chrome/browser/history/visit_database.h" | 10 #include "chrome/browser/history/visit_database.h" |
| 11 #include "sql/connection.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using base::Time; | 14 using base::Time; |
15 using base::TimeDelta; | 15 using base::TimeDelta; |
16 using base::TimeTicks; | 16 using base::TimeTicks; |
17 | 17 |
18 namespace history { | 18 namespace history { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 EXPECT_TRUE(ResultsHaveURL(results, kURL2)); | 528 EXPECT_TRUE(ResultsHaveURL(results, kURL2)); |
529 EXPECT_TRUE(ResultsHaveURL(results, kURL1)); | 529 EXPECT_TRUE(ResultsHaveURL(results, kURL1)); |
530 | 530 |
531 // Try to query some more, there should be no results. | 531 // Try to query some more, there should be no results. |
532 options.end_time = first_time_searched; | 532 options.end_time = first_time_searched; |
533 manager.GetTextMatches(foo, options, &results, &first_time_searched); | 533 manager.GetTextMatches(foo, options, &results, &first_time_searched); |
534 EXPECT_EQ(0U, results.size()); | 534 EXPECT_EQ(0U, results.size()); |
535 } | 535 } |
536 | 536 |
537 } // namespace history | 537 } // namespace history |
OLD | NEW |