Home | History | Annotate | Download | only in activity_log

Lines Matching full:actions

143   // Checks that the number of queued actions to be written out does not exceed
198 scoped_ptr<Action::ActionVector> actions) {
199 ASSERT_EQ(1, static_cast<int>(actions->size()));
200 CheckAction(*actions->at(0).get(),
212 scoped_ptr<Action::ActionVector> actions) {
213 ASSERT_EQ(3, static_cast<int>(actions->size()));
214 CheckAction(*actions->at(0).get(),
223 CheckAction(*actions->at(1).get(),
232 CheckAction(*actions->at(2).get(),
244 scoped_ptr<Action::ActionVector> actions) {
245 ASSERT_EQ(2, static_cast<int>(actions->size()));
246 CheckAction(*actions->at(0).get(),
255 CheckAction(*actions->at(1).get(),
268 scoped_ptr<Action::ActionVector> actions) {
270 ASSERT_EQ(1u, actions->size());
271 CheckAction(*actions->at(0).get(),
281 ASSERT_EQ(0u, actions->size());
288 scoped_ptr<Action::ActionVector> actions) {
290 ASSERT_EQ(1u, actions->size());
291 CheckAction(*actions->at(0).get(),
300 ASSERT_EQ(time, actions->at(0)->time());
302 ASSERT_EQ(0u, actions->size());
306 static void AllURLsRemoved(scoped_ptr<Action::ActionVector> actions) {
307 ASSERT_EQ(2, static_cast<int>(actions->size()));
308 CheckAction(*actions->at(0).get(),
317 CheckAction(*actions->at(1).get(),
328 static void SomeURLsRemoved(scoped_ptr<Action::ActionVector> actions) {
330 ASSERT_EQ(5, static_cast<int>(actions->size()));
331 CheckAction(*actions->at(0).get(),
340 CheckAction(*actions->at(1).get(),
349 CheckAction(*actions->at(2).get(),
358 CheckAction(*actions->at(3).get(),
367 CheckAction(*actions->at(4).get(),
378 static void CheckDuplicates(scoped_ptr<Action::ActionVector> actions) {
379 ASSERT_EQ(2u, actions->size());
381 for (size_t i = 0; i < actions->size(); i++) {
382 total_count += actions->at(i)->count();
408 // A helper function initializes the policy with a number of actions, calls
423 // Record some actions
451 // Submit a request to delete actions.
462 static void AllActionsDeleted(scoped_ptr<Action::ActionVector> actions) {
463 ASSERT_EQ(0, static_cast<int>(actions->size()));
466 static void NoActionsDeleted(scoped_ptr<Action::ActionVector> actions) {
468 ASSERT_EQ(2, static_cast<int>(actions->size()));
469 CheckAction(*actions->at(0).get(),
478 ASSERT_EQ(2, actions->at(0)->action_id());
479 CheckAction(*actions->at(1).get(),
488 ASSERT_EQ(1, actions->at(1)->action_id());
491 static void Action1Deleted(scoped_ptr<Action::ActionVector> actions) {
493 ASSERT_EQ(1, static_cast<int>(actions->size()));
494 CheckAction(*actions->at(0).get(),
503 ASSERT_EQ(2, actions->at(0)->action_id());
506 static void Action2Deleted(scoped_ptr<Action::ActionVector> actions) {
508 ASSERT_EQ(1, static_cast<int>(actions->size()));
509 CheckAction(*actions->at(0).get(),
518 ASSERT_EQ(1, actions->at(0)->action_id());
591 // Disable row expiration for this test by setting a time before any actions
605 // Record some actions
649 // Check that we can read back less recent actions in the db.
662 // Record some actions
803 // Check that merging of actions only occurs within the same day, not across
809 // actions we generate.
819 // The first two actions should be merged; the last one is on a separate day
852 // Clean actions before midnight two days ago. Force expiration to run by
879 // actions we generate.
927 actions. Submit
979 // Create three actions today, where the merges should happen in memory.
1004 // Check that actions are flushed to disk before letting too many accumulate in
1065 // Record some actions
1108 // Record some actions
1185 // Record some actions
1236 // Disable row expiration for this test by setting a time before any actions
1250 // Record some actions
1346 // Record two actions with distinct URLs.
1402 // CheckRemoveActions pushes two actions to the Activity Log database with IDs