Home
last modified time | relevance | path

Searched refs:db_path (Results 1 – 25 of 48) sorted by relevance

12

/external/chromium_org/chrome/utility/importer/
Dfirefox_importer_unittest.cc33 base::FilePath db_path; in TEST() local
34 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &db_path)); in TEST()
35 db_path = db_path.AppendASCII("firefox3_profile"); in TEST()
40 ASSERT_TRUE(decryptor_proxy.DecryptorInit(nss_path, db_path)); in TEST()
101 base::FilePath db_path; in TEST() local
102 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &db_path)); in TEST()
103 db_path = db_path.AppendASCII("firefox3_profile"); in TEST()
108 ASSERT_TRUE(decryptor_proxy.DecryptorInit(nss_path, db_path)); in TEST()
Dfirefox_importer_unittest_utils.h47 const base::FilePath& db_path);
84 const base::FilePath& db_path) { in DecryptorInit() argument
85 return decryptor_.Init(dll_path, db_path); in DecryptorInit()
Dnss_decryptor_win.cc41 const base::FilePath& db_path) { in Init() argument
96 return InitNSS(db_path, plds4_dll, nspr4_dll); in Init()
112 bool NSSDecryptor::InitNSS(const base::FilePath& db_path, in InitNSS() argument
145 SECStatus result = NSS_Init(base::SysWideToNativeMB(db_path.value()).c_str()); in InitNSS()
Dfirefox_importer_unittest_utils_mac.cc203 const base::FilePath& db_path) { in DecryptorInit() argument
204 channel_->Send(new Msg_Decryptor_Init(dll_path, db_path)); in DecryptorInit()
247 void OnDecryptor_Init(base::FilePath dll_path, base::FilePath db_path) { in OnDecryptor_Init() argument
248 bool ret = decryptor_.Init(dll_path, db_path); in OnDecryptor_Init()
Dnss_decryptor_win.h120 bool Init(const base::FilePath& dll_path, const base::FilePath& db_path);
143 bool InitNSS(const base::FilePath& db_path,
Dnss_decryptor_mac.mm23 const base::FilePath& db_path) {
55 SECStatus result = NSS_Init(db_path.value().c_str());
/external/chromium_org/sql/
Dconnection_unittest.cc104 const base::FilePath& db_path() { return db_path_; } in db_path() function in __anon8597a9840111::SQLConnectionTest
353 ASSERT_TRUE(db().Open(db_path())); in TEST_F()
373 ASSERT_TRUE(other_db.Open(db_path())); in TEST_F()
392 ASSERT_TRUE(other_db.Open(db_path())); in TEST_F()
427 base::ScopedFILE file(base::OpenFile(db_path(), "rb+")); in TEST_F()
433 ASSERT_TRUE(db().Open(db_path())); in TEST_F()
441 sql::Connection::Delete(db_path()); in TEST_F()
442 ASSERT_FALSE(base::PathExists(db_path())); in TEST_F()
445 base::ScopedFILE file(base::OpenFile(db_path(), "wb")); in TEST_F()
451 ASSERT_TRUE(base::PathExists(db_path())); in TEST_F()
[all …]
Drecovery_unittest.cc70 ASSERT_TRUE(db_.Open(db_path())); in SetUp()
79 base::FilePath db_path() { in db_path() function in __anon05391a430111::SQLRecoveryTest
85 return db_.Open(db_path()); in Reopen()
103 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F()
118 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F()
136 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F()
171 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); in TEST_F()
203 void RecoveryCallback(sql::Connection* db, const base::FilePath& db_path, in RecoveryCallback() argument
210 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); in RecoveryCallback()
263 ASSERT_TRUE(sql::test::CorruptTableOrIndex(db_path(), "x_id", kDeleteSql)); in TEST_F()
[all …]
Drecovery.h84 const base::FilePath& db_path) WARN_UNUSED_RESULT;
159 bool Init(const base::FilePath& db_path) WARN_UNUSED_RESULT;
Drecovery.cc108 const base::FilePath& db_path) { in Begin() argument
110 if (!r->Init(db_path)) { in Begin()
154 bool Recovery::Init(const base::FilePath& db_path) { in Init() argument
219 if (!recover_db_.AttachDatabase(db_path, "corrupt")) { in Init()
/external/chromium_org/chrome/browser/history/
Dshortcuts_database_unittest.cc61 void CheckV2ColumnExistence(const base::FilePath& db_path, bool is_v2) { in CheckV2ColumnExistence() argument
63 ASSERT_TRUE(connection.Open(db_path)); in CheckV2ColumnExistence()
234 base::FilePath db_path(temp_dir.path().AppendASCII("TestShortcuts1.db")); in TEST() local
235 ASSERT_TRUE(sql::test::CreateDatabaseFromSQL(db_path, sql_path)); in TEST()
237 CheckV2ColumnExistence(db_path, false); in TEST()
242 scoped_refptr<ShortcutsDatabase> db(new ShortcutsDatabase(db_path)); in TEST()
246 CheckV2ColumnExistence(db_path, true); in TEST()
250 ASSERT_TRUE(connection.Open(db_path)); in TEST()
279 base::FilePath db_path(temp_dir.path().AppendASCII("TestShortcuts2.db")); in TEST() local
280 ASSERT_TRUE(sql::test::CreateDatabaseFromSQL(db_path, sql_path)); in TEST()
[all …]
Dhistory_unittest_base.cc20 const base::FilePath& db_path) { in ExecuteSQLScript() argument
34 ASSERT_TRUE(connection.Open(db_path)); in ExecuteSQLScript()
Dtop_sites_database.cc200 void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) { in RecoverDatabaseOrRaze() argument
211 base::GetFileSize(db_path, &original_size); in RecoverDatabaseOrRaze()
213 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(db, db_path); in RecoverDatabaseOrRaze()
299 base::GetFileSize(db_path, &final_size) && in RecoverDatabaseOrRaze()
315 const base::FilePath& db_path, in DatabaseErrorCallback() argument
326 RecoverDatabaseOrRaze(db, db_path); in DatabaseErrorCallback()
Dhistory_unittest_base.h25 const base::FilePath& db_path);
/external/chromium_org/sql/test/
Dtest_helpers.cc69 bool CorruptSizeInHeader(const base::FilePath& db_path) { in CorruptSizeInHeader() argument
79 base::ScopedFILE file(base::OpenFile(db_path, "rb+")); in CorruptSizeInHeader()
89 if (!base::GetFileSize(db_path, &db_size)) in CorruptSizeInHeader()
112 bool CorruptTableOrIndex(const base::FilePath& db_path, in CorruptTableOrIndex() argument
116 if (!db.Open(db_path)) in CorruptTableOrIndex()
132 base::ScopedFILE file(base::OpenFile(db_path, "rb+")); in CorruptTableOrIndex()
219 bool CreateDatabaseFromSQL(const base::FilePath& db_path, in CreateDatabaseFromSQL() argument
221 if (base::PathExists(db_path) || !base::PathExists(sql_path)) in CreateDatabaseFromSQL()
229 if (!db.Open(db_path)) in CreateDatabaseFromSQL()
Dtest_helpers.h35 bool CorruptSizeInHeader(const base::FilePath& db_path) WARN_UNUSED_RESULT;
53 bool CorruptTableOrIndex(const base::FilePath& db_path,
76 bool CreateDatabaseFromSQL(const base::FilePath& db_path,
/external/chromium_org/chrome/browser/diagnostics/
Ddiagnostics_controller_unittest.cc116 base::FilePath db_path = profile_dir_.Append(chromeos::kNssCertDbPath); in TEST_F() local
117 EXPECT_TRUE(base::PathExists(db_path)); in TEST_F()
118 CorruptDataFile(db_path); in TEST_F()
134 EXPECT_FALSE(base::PathExists(db_path)); in TEST_F()
138 base::FilePath db_path = profile_dir_.Append(chromeos::kNssKeyDbPath); in TEST_F() local
139 EXPECT_TRUE(base::PathExists(db_path)); in TEST_F()
140 CorruptDataFile(db_path); in TEST_F()
156 EXPECT_FALSE(base::PathExists(db_path)); in TEST_F()
/external/chromium_org/extensions/browser/value_store/
Dvalue_store_frontend.cc20 void Init(const base::FilePath& db_path) { in Init() argument
24 db_path_ = db_path; in Init()
25 storage_ = new LeveldbValueStore(db_path); in Init()
101 ValueStoreFrontend::ValueStoreFrontend(const base::FilePath& db_path) in ValueStoreFrontend() argument
103 Init(db_path); in ValueStoreFrontend()
117 void ValueStoreFrontend::Init(const base::FilePath& db_path) { in Init() argument
120 backend_, db_path)); in Init()
Dvalue_store_frontend.h30 explicit ValueStoreFrontend(const base::FilePath& db_path);
35 void Init(const base::FilePath& db_path);
/external/chromium_org/content/browser/fileapi/
Dsandbox_database_test_helper.cc22 void CorruptDatabase(const base::FilePath& db_path, in CorruptDatabase() argument
26 base::FileEnumerator file_enum(db_path, false /* not recursive */, in CorruptDatabase()
76 void DeleteDatabaseFile(const base::FilePath& db_path, in DeleteDatabaseFile() argument
78 base::FileEnumerator file_enum(db_path, false /* not recursive */, in DeleteDatabaseFile()
Dsandbox_database_test_helper.h18 void CorruptDatabase(const base::FilePath& db_path,
23 void DeleteDatabaseFile(const base::FilePath& db_path,
/external/chromium_org/chrome/browser/media_galleries/fileapi/
Diapps_finder_impl_mac.mm56 base::FilePath db_path = path_extractor.Run(path_ns);
57 if (db_path.empty())
61 if (!base::GetFileInfo(db_path, &file_info))
70 most_recent_db_path = db_path;
/external/chromium_org/storage/browser/fileapi/
Dsandbox_origin_database.cc75 base::FilePath db_path = GetDatabasePath(); in Init() local
76 if (init_option == FAIL_IF_NONEXISTENT && !base::PathExists(db_path)) in Init()
79 std::string path = FilePathToString(db_path); in Init()
126 bool SandboxOriginDatabase::RepairDatabase(const std::string& db_path) { in RepairDatabase() argument
132 if (!leveldb::RepairDB(db_path, options).ok() || in RepairDatabase()
/external/chromium_org/components/precache/content/
Dprecache_manager.cc38 base::FilePath db_path(browser_context_->GetPath().Append( in PrecacheManager() local
44 precache_database_, db_path)); in PrecacheManager()
/external/chromium_org/components/precache/core/
Dprecache_database.cc38 bool PrecacheDatabase::Init(const base::FilePath& db_path) { in Init() argument
45 if (!db_->Open(db_path)) { in Init()

12