| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef SQL_TEST_SQL_TEST_BASE_H_ | 5 #ifndef SQL_TEST_SQL_TEST_BASE_H_ |
| 6 #define SQL_TEST_SQL_TEST_BASE_H_ | 6 #define SQL_TEST_SQL_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "sql/connection.h" | 11 #include "sql/connection.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 namespace sql { | 14 namespace sql { |
| 16 | 15 |
| 17 class Connection; | 16 class Connection; |
| 18 | 17 |
| 19 // Base class for SQL tests. | 18 // Base class for SQL tests. |
| 20 // | 19 // |
| 21 // WARNING: We want to run the same gtest based unit test code both against | 20 // WARNING: We want to run the same gtest based unit test code both against |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 private: | 69 private: |
| 71 base::ScopedTempDir temp_dir_; | 70 base::ScopedTempDir temp_dir_; |
| 72 sql::Connection db_; | 71 sql::Connection db_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(SQLTestBase); | 73 DISALLOW_COPY_AND_ASSIGN(SQLTestBase); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace sql | 76 } // namespace sql |
| 78 | 77 |
| 79 #endif // SQL_TEST_SQL_TEST_BASE_H_ | 78 #endif // SQL_TEST_SQL_TEST_BASE_H_ |
| OLD | NEW |