Lines Matching defs:kOrigin1
213 const std::string kOrigin1 =
222 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
231 tracker->GetOriginDirectory(kOrigin1)))));
236 tracker->GetFullDBFilePath(kOrigin1, kDB1), "a", 1));
241 tracker->DatabaseModified(kOrigin1, kDB1);
249 int result = tracker->DeleteDatabase(kOrigin1, kDB1, callback.callback());
253 EXPECT_EQ(kOrigin1, observer.GetNotificationOriginIdentifier());
255 tracker->DatabaseClosed(kOrigin1, kDB1);
259 tracker->DatabaseDirectory().AppendASCII(kOrigin1)));
262 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
266 tracker->GetOriginDirectory(kOrigin1)))));
268 tracker->GetFullDBFilePath(kOrigin1, kDB1), "a", 1));
269 tracker->DatabaseModified(kOrigin1, kDB1);
274 EXPECT_TRUE(base::TouchFile(tracker->GetFullDBFilePath(kOrigin1, kDB1),
290 tracker->DatabaseClosed(kOrigin1, kDB1);
295 tracker->DatabaseDirectory().AppendASCII(kOrigin1)));
327 const std::string kOrigin1 =
336 // Get the info for kOrigin1 and kOrigin2
338 tracker->GetCachedOriginInfo(kOrigin1);
340 tracker->GetCachedOriginInfo(kOrigin1);
345 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
351 tracker->DatabaseOpened(kOrigin1, kDB3, kDescription, 0,
359 tracker->GetOriginDirectory(kOrigin1)))));
364 tracker->GetFullDBFilePath(kOrigin1, kDB1), "a", 1));
368 tracker->GetFullDBFilePath(kOrigin1, kDB3), "aaaa", 4));
369 tracker->DatabaseModified(kOrigin1, kDB1);
370 CheckNotificationReceived(&observer1, kOrigin1, kDB1, 1);
371 CheckNotificationReceived(&observer2, kOrigin1, kDB1, 1);
375 tracker->DatabaseModified(kOrigin1, kDB3);
376 CheckNotificationReceived(&observer1, kOrigin1, kDB3, 4);
377 CheckNotificationReceived(&observer2, kOrigin1, kDB3, 4);
380 tracker->DatabaseClosed(kOrigin1, kDB1);
382 tracker->DatabaseClosed(kOrigin1, kDB3);
385 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
388 tracker->DatabaseClosed(kOrigin1, kDB1);
396 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
399 tracker->DatabaseClosed(kOrigin1, kDB1);
405 tracker->DatabaseOpened(kOrigin1, kDB3, kDescription, 0,
407 EXPECT_FALSE(tracker->DeleteClosedDatabase(kOrigin1, kDB3));
408 origin1_info = tracker->GetCachedOriginInfo(kOrigin1);
411 tracker->DatabaseClosed(kOrigin1
414 EXPECT_TRUE(tracker->DeleteClosedDatabase(kOrigin1, kDB3));
415 origin1_info = tracker->GetCachedOriginInfo(kOrigin1);
424 EXPECT_EQ(kOrigin1, origins_info[0].GetOriginIdentifier());
433 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
435 EXPECT_FALSE(tracker->DeleteOrigin(kOrigin1, false));
436 origin1_info = tracker->GetCachedOriginInfo(kOrigin1);
439 tracker->DatabaseClosed(kOrigin1, kDB1);
442 EXPECT_TRUE(tracker->DeleteOrigin(kOrigin1, false));
448 origin1_info = tracker->GetCachedOriginInfo(kOrigin1);
552 const std::string kOrigin1 =
578 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
587 db_file = tracker->GetFullDBFilePath(kOrigin1, kDB1);
596 origin1_db_dir = tracker->GetFullDBFilePath(kOrigin1, kDB1).DirName();
599 tracker->DatabaseModified(kOrigin1, kDB1);
603 tracker->DatabaseClosed(kOrigin1, kDB1);
616 // kOrigin1 was not session-only, so it survived. kOrigin2 was session-only
619 EXPECT_EQ(kOrigin1, origins_info[0].GetOriginIdentifier());
621 base::PathExists(tracker->GetFullDBFilePath(kOrigin1, kDB1)));
624 // The origin directory of kOrigin1 remains, but the origin directory of
632 const std::string kOrigin1 =
659 tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0,
668 db_file = tracker->GetFullDBFilePath(kOrigin1, kDB1);
677 origin1_db_dir = tracker->GetFullDBFilePath(kOrigin1, kDB1).DirName();
680 tracker->DatabaseModified(kOrigin1, kDB1);
684 tracker->DatabaseClosed(kOrigin1, kDB1);
700 base::PathExists(tracker->GetFullDBFilePath(kOrigin1, kDB1)));