| 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/path_service.h" | 7 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" | 8 #include "base/scoped_temp_dir.h" |
| 10 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 11 #include "chrome/browser/history/url_database.h" | 10 #include "chrome/browser/history/url_database.h" |
| 12 #include "chrome/browser/history/visit_database.h" | 11 #include "chrome/browser/history/visit_database.h" |
| 12 #include "sql/connection.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 15 | 15 |
| 16 using base::Time; | 16 using base::Time; |
| 17 using base::TimeDelta; | 17 using base::TimeDelta; |
| 18 | 18 |
| 19 namespace history { | 19 namespace history { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 EXPECT_EQ(SOURCE_SYNCED, sources[matches[0].visit_id]); | 251 EXPECT_EQ(SOURCE_SYNCED, sources[matches[0].visit_id]); |
| 252 | 252 |
| 253 ASSERT_TRUE(GetVisitsForURL(113, &matches)); | 253 ASSERT_TRUE(GetVisitsForURL(113, &matches)); |
| 254 ASSERT_EQ(1U, matches.size()); | 254 ASSERT_EQ(1U, matches.size()); |
| 255 GetVisitsSource(matches, &sources); | 255 GetVisitsSource(matches, &sources); |
| 256 ASSERT_EQ(1U, sources.size()); | 256 ASSERT_EQ(1U, sources.size()); |
| 257 EXPECT_EQ(SOURCE_EXTENSION, sources[matches[0].visit_id]); | 257 EXPECT_EQ(SOURCE_EXTENSION, sources[matches[0].visit_id]); |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace history | 260 } // namespace history |
| OLD | NEW |