database_test_peer.h 732 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SQL_TEST_DATABASE_TEST_PEER_H_
  5. #define SQL_TEST_DATABASE_TEST_PEER_H_
  6. namespace base {
  7. class FilePath;
  8. } // namespace base
  9. namespace sql {
  10. class Database;
  11. class DatabaseTestPeer {
  12. public:
  13. static bool AttachDatabase(Database* db,
  14. const base::FilePath& other_db_path,
  15. const char* attachment_point);
  16. static bool DetachDatabase(Database* db, const char* attachment_point);
  17. static bool EnableRecoveryExtension(Database* db);
  18. };
  19. } // namespace sql
  20. #endif // SQL_TEST_DATABASE_TEST_PEER_H_