| 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/autocomplete/shortcuts_database.h" |
| 6 |
| 5 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 6 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 7 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 8 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 11 #include "chrome/browser/history/shortcuts_database.h" | |
| 12 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
| 13 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 15 #include "components/omnibox/autocomplete_match_type.h" | 16 #include "components/omnibox/autocomplete_match_type.h" |
| 16 #include "sql/statement.h" | 17 #include "sql/statement.h" |
| 17 #include "sql/test/test_helpers.h" | 18 #include "sql/test/test_helpers.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "ui/base/page_transition_types.h" | 20 #include "ui/base/page_transition_types.h" |
| 20 | 21 |
| 21 using base::ASCIIToUTF16; | 22 using base::ASCIIToUTF16; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 ASSERT_TRUE(statement.is_valid()); | 295 ASSERT_TRUE(statement.is_valid()); |
| 295 while (statement.Step()) | 296 while (statement.Step()) |
| 296 EXPECT_EQ(0, statement.ColumnInt(0)); | 297 EXPECT_EQ(0, statement.ColumnInt(0)); |
| 297 EXPECT_TRUE(statement.Succeeded()); | 298 EXPECT_TRUE(statement.Succeeded()); |
| 298 #if !defined(OS_WIN) | 299 #if !defined(OS_WIN) |
| 299 EXPECT_TRUE(temp_dir.Delete()); | 300 EXPECT_TRUE(temp_dir.Delete()); |
| 300 #endif | 301 #endif |
| 301 } | 302 } |
| 302 | 303 |
| 303 } // namespace history | 304 } // namespace history |
| OLD | NEW |