| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SCOPED_ERROR_IGNORER_H_ | 5 #ifndef SQL_TEST_SCOPED_ERROR_IGNORER_H_ |
| 6 #define SQL_TEST_SCOPED_ERROR_IGNORER_H_ | 6 #define SQL_TEST_SCOPED_ERROR_IGNORER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 #include "sql/connection.h" | 11 #include "sql/connection.h" |
| 12 | 12 |
| 13 // This is not strictly necessary for the operation of ScopedErrorIgnorer, but | 13 // This is not strictly necessary for the operation of ScopedErrorIgnorer, but |
| 14 // the class is not useful without the SQLite error codes. | 14 // the class is not useful without the SQLite error codes. |
| 15 #include "third_party/sqlite/sqlite3.h" | 15 #include "third_party/sqlite/sqlite3.h" |
| 16 | 16 |
| 17 // TODO(shess): sql::test:: seems like it could be in order for this. | 17 // TODO(shess): sql::test:: seems like it could be in order for this. |
| 18 namespace sql { | 18 namespace sql { |
| 19 | 19 |
| 20 // sql::Connection and sql::Statement treat most SQLite errors as | 20 // sql::Connection and sql::Statement treat most SQLite errors as |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Errors which have been ignored. | 65 // Errors which have been ignored. |
| 66 std::set<int> errors_ignored_; | 66 std::set<int> errors_ignored_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(ScopedErrorIgnorer); | 68 DISALLOW_COPY_AND_ASSIGN(ScopedErrorIgnorer); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace sql | 71 } // namespace sql |
| 72 | 72 |
| 73 #endif // SQL_TEST_SCOPED_ERROR_IGNORER_H_ | 73 #endif // SQL_TEST_SCOPED_ERROR_IGNORER_H_ |
| OLD | NEW |