| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "app/sql/connection.h" | |
| 8 #include "app/sql/statement.h" | |
| 9 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 11 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "sql/connection.h" |
| 11 #include "sql/statement.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/sqlite/sqlite3.h" | 13 #include "third_party/sqlite/sqlite3.h" |
| 14 | 14 |
| 15 // Test that certain features are/are-not enabled in our SQLite. | 15 // Test that certain features are/are-not enabled in our SQLite. |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 | 19 |
| 20 class StatementErrorHandler : public sql::ErrorDelegate { | 20 class StatementErrorHandler : public sql::ErrorDelegate { |
| 21 public: | 21 public: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 TEST_F(SQLiteFeaturesTest, FTS2) { | 91 TEST_F(SQLiteFeaturesTest, FTS2) { |
| 92 ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts2(x)")); | 92 ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts2(x)")); |
| 93 } | 93 } |
| 94 | 94 |
| 95 // fts3 is used for current history files, and also for WebDatabase. | 95 // fts3 is used for current history files, and also for WebDatabase. |
| 96 TEST_F(SQLiteFeaturesTest, FTS3) { | 96 TEST_F(SQLiteFeaturesTest, FTS3) { |
| 97 ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts3(x)")); | 97 ASSERT_TRUE(db().Execute("CREATE VIRTUAL TABLE foo USING fts3(x)")); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace | 100 } // namespace |
| OLD | NEW |