OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/test/histogram_tester.h" | 6 #include "base/test/histogram_tester.h" |
7 #include "base/test/simple_test_clock.h" | 7 #include "base/test/simple_test_clock.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/engagement/site_engagement_helper.h" | 9 #include "chrome/browser/engagement/site_engagement_helper.h" |
10 #include "chrome/browser/engagement/site_engagement_metrics.h" | 10 #include "chrome/browser/engagement/site_engagement_metrics.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 EXPECT_DOUBLE_EQ(0.15, service->GetTotalEngagementPoints()); | 499 EXPECT_DOUBLE_EQ(0.15, service->GetTotalEngagementPoints()); |
500 | 500 |
501 service->HandleUserInput(url3, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); | 501 service->HandleUserInput(url3, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); |
502 EXPECT_DOUBLE_EQ(0.05, service->GetScore(url3)); | 502 EXPECT_DOUBLE_EQ(0.05, service->GetScore(url3)); |
503 EXPECT_DOUBLE_EQ(0.2, service->GetTotalEngagementPoints()); | 503 EXPECT_DOUBLE_EQ(0.2, service->GetTotalEngagementPoints()); |
504 | 504 |
505 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); | 505 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); |
506 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_MOUSE); | 506 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_MOUSE); |
507 EXPECT_DOUBLE_EQ(0.15, service->GetScore(url1)); | 507 EXPECT_DOUBLE_EQ(0.15, service->GetScore(url1)); |
508 EXPECT_DOUBLE_EQ(0.3, service->GetTotalEngagementPoints()); | 508 EXPECT_DOUBLE_EQ(0.3, service->GetTotalEngagementPoints()); |
| 509 |
| 510 service->HandleUserInput(url2, SiteEngagementMetrics::ENGAGEMENT_WHEEL); |
| 511 service->HandleUserInput(url3, |
| 512 SiteEngagementMetrics::ENGAGEMENT_TOUCH_GESTURE); |
| 513 EXPECT_DOUBLE_EQ(0.15, service->GetScore(url2)); |
| 514 EXPECT_DOUBLE_EQ(0.1, service->GetScore(url3)); |
| 515 EXPECT_DOUBLE_EQ(0.4, service->GetTotalEngagementPoints()); |
509 } | 516 } |
510 | 517 |
511 TEST_F(SiteEngagementServiceTest, CheckHistograms) { | 518 TEST_F(SiteEngagementServiceTest, CheckHistograms) { |
512 base::SimpleTestClock* clock = new base::SimpleTestClock(); | 519 base::SimpleTestClock* clock = new base::SimpleTestClock(); |
513 scoped_ptr<SiteEngagementService> service( | 520 scoped_ptr<SiteEngagementService> service( |
514 new SiteEngagementService(profile(), make_scoped_ptr(clock))); | 521 new SiteEngagementService(profile(), make_scoped_ptr(clock))); |
515 | 522 |
516 base::Time current_day = GetReferenceTime(); | 523 base::Time current_day = GetReferenceTime(); |
517 clock->SetNow(current_day); | 524 clock->SetNow(current_day); |
518 | 525 |
(...skipping 20 matching lines...) Expand all Loading... |
539 0); | 546 0); |
540 | 547 |
541 // The https and http versions of www.google.com should be separate. | 548 // The https and http versions of www.google.com should be separate. |
542 GURL url1("https://www.google.com/"); | 549 GURL url1("https://www.google.com/"); |
543 GURL url2("http://www.google.com/"); | 550 GURL url2("http://www.google.com/"); |
544 GURL url3("http://drive.google.com/"); | 551 GURL url3("http://drive.google.com/"); |
545 | 552 |
546 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); | 553 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); |
547 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); | 554 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); |
548 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_MOUSE); | 555 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_MOUSE); |
| 556 service->HandleMediaPlaying(url2, true); |
549 | 557 |
550 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, | 558 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, |
551 1); | 559 1); |
552 histograms.ExpectUniqueSample(SiteEngagementMetrics::kTotalOriginsHistogram, | 560 histograms.ExpectUniqueSample(SiteEngagementMetrics::kTotalOriginsHistogram, |
553 1, 1); | 561 1, 1); |
554 histograms.ExpectTotalCount(SiteEngagementMetrics::kMeanEngagementHistogram, | 562 histograms.ExpectTotalCount(SiteEngagementMetrics::kMeanEngagementHistogram, |
555 1); | 563 1); |
556 histograms.ExpectTotalCount(SiteEngagementMetrics::kMedianEngagementHistogram, | 564 histograms.ExpectTotalCount(SiteEngagementMetrics::kMedianEngagementHistogram, |
557 1); | 565 1); |
558 // Recorded per origin. | 566 // Recorded per origin. |
559 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementScoreHistogram, | 567 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementScoreHistogram, |
560 1); | 568 1); |
561 histograms.ExpectUniqueSample( | 569 histograms.ExpectUniqueSample( |
562 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 1); | 570 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 1); |
563 histograms.ExpectUniqueSample( | 571 histograms.ExpectUniqueSample( |
564 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 1); | 572 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 1); |
565 histograms.ExpectUniqueSample( | 573 histograms.ExpectUniqueSample( |
566 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 1); | 574 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 1); |
567 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 575 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
568 3); | 576 4); |
569 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 577 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
570 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 1); | 578 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 1); |
571 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 579 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
572 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); | 580 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); |
573 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 581 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
574 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 1); | 582 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 1); |
| 583 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 584 SiteEngagementMetrics::ENGAGEMENT_MEDIA_HIDDEN, |
| 585 1); |
575 | 586 |
576 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(59)); | 587 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(59)); |
577 | 588 |
578 service->HandleNavigation(url2, ui::PAGE_TRANSITION_GENERATED); | 589 service->HandleNavigation(url2, ui::PAGE_TRANSITION_GENERATED); |
579 service->HandleNavigation(url2, ui::PAGE_TRANSITION_AUTO_BOOKMARK); | 590 service->HandleNavigation(url2, ui::PAGE_TRANSITION_AUTO_BOOKMARK); |
580 | 591 |
581 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 592 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
582 5); | 593 6); |
583 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 594 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
584 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 3); | 595 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 3); |
585 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 596 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
586 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); | 597 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); |
587 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 598 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
588 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 1); | 599 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 1); |
| 600 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 601 SiteEngagementMetrics::ENGAGEMENT_MEDIA_HIDDEN, |
| 602 1); |
589 | 603 |
590 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(60)); | 604 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(60)); |
591 | 605 |
592 service->HandleNavigation(url3, ui::PAGE_TRANSITION_TYPED); | 606 service->HandleNavigation(url3, ui::PAGE_TRANSITION_TYPED); |
593 service->HandleUserInput(url2, SiteEngagementMetrics::ENGAGEMENT_MOUSE); | 607 service->HandleUserInput(url2, |
| 608 SiteEngagementMetrics::ENGAGEMENT_TOUCH_GESTURE); |
| 609 service->HandleMediaPlaying(url3, false); |
594 | 610 |
595 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, | 611 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, |
596 2); | 612 2); |
597 histograms.ExpectBucketCount(SiteEngagementMetrics::kTotalOriginsHistogram, 1, | 613 histograms.ExpectBucketCount(SiteEngagementMetrics::kTotalOriginsHistogram, 1, |
598 1); | 614 1); |
599 histograms.ExpectBucketCount(SiteEngagementMetrics::kTotalOriginsHistogram, 3, | 615 histograms.ExpectBucketCount(SiteEngagementMetrics::kTotalOriginsHistogram, 3, |
600 1); | 616 1); |
601 histograms.ExpectTotalCount(SiteEngagementMetrics::kMeanEngagementHistogram, | 617 histograms.ExpectTotalCount(SiteEngagementMetrics::kMeanEngagementHistogram, |
602 2); | 618 2); |
603 histograms.ExpectTotalCount(SiteEngagementMetrics::kMedianEngagementHistogram, | 619 histograms.ExpectTotalCount(SiteEngagementMetrics::kMedianEngagementHistogram, |
604 2); | 620 2); |
605 // Recorded per origin. | 621 // Recorded per origin. |
606 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementScoreHistogram, | 622 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementScoreHistogram, |
607 4); | 623 4); |
608 histograms.ExpectUniqueSample( | 624 histograms.ExpectUniqueSample( |
609 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 2); | 625 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 2); |
610 histograms.ExpectUniqueSample( | 626 histograms.ExpectUniqueSample( |
611 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 2); | 627 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 2); |
612 histograms.ExpectUniqueSample( | 628 histograms.ExpectUniqueSample( |
613 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 2); | 629 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 2); |
614 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 630 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
615 7); | 631 9); |
616 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 632 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
617 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 4); | 633 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 4); |
618 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 634 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
619 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); | 635 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 1); |
620 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 636 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
621 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 2); | 637 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 1); |
| 638 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 639 SiteEngagementMetrics::ENGAGEMENT_TOUCH_GESTURE, |
| 640 1); |
| 641 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 642 SiteEngagementMetrics::ENGAGEMENT_MEDIA_VISIBLE, |
| 643 1); |
| 644 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 645 SiteEngagementMetrics::ENGAGEMENT_MEDIA_HIDDEN, |
| 646 1); |
622 | 647 |
623 service->HandleNavigation(url1, ui::PAGE_TRANSITION_GENERATED); | 648 service->HandleNavigation(url1, ui::PAGE_TRANSITION_GENERATED); |
624 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); | 649 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); |
625 service->HandleUserInput(url2, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); | 650 service->HandleUserInput(url2, SiteEngagementMetrics::ENGAGEMENT_WHEEL); |
626 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); | 651 service->HandleUserInput(url1, SiteEngagementMetrics::ENGAGEMENT_KEYPRESS); |
627 service->HandleUserInput(url3, SiteEngagementMetrics::ENGAGEMENT_MOUSE); | 652 service->HandleUserInput(url3, SiteEngagementMetrics::ENGAGEMENT_MOUSE); |
628 | 653 |
629 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 654 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
630 12); | 655 14); |
631 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 656 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
632 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 6); | 657 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, 6); |
633 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 658 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
634 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 3); | 659 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 2); |
635 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 660 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
636 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 3); | 661 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 2); |
| 662 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 663 SiteEngagementMetrics::ENGAGEMENT_TOUCH_GESTURE, |
| 664 1); |
| 665 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
| 666 SiteEngagementMetrics::ENGAGEMENT_WHEEL, 1); |
637 | 667 |
638 // Advance an origin to the max for a day and advance the clock an hour before | 668 // Advance an origin to the max for a day and advance the clock an hour before |
639 // the last increment before max. Expect the histogram to be updated. | 669 // the last increment before max. Expect the histogram to be updated. |
640 for (int i = 0; i < 6; ++i) | 670 for (int i = 0; i < 6; ++i) |
641 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); | 671 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); |
642 | 672 |
643 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(121)); | 673 clock->SetNow(GetReferenceTime() + base::TimeDelta::FromMinutes(121)); |
644 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); | 674 service->HandleNavigation(url1, ui::PAGE_TRANSITION_TYPED); |
645 | 675 |
646 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, | 676 histograms.ExpectTotalCount(SiteEngagementMetrics::kTotalEngagementHistogram, |
(...skipping 10 matching lines...) Expand all Loading... |
657 7); | 687 7); |
658 histograms.ExpectUniqueSample( | 688 histograms.ExpectUniqueSample( |
659 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 3); | 689 SiteEngagementMetrics::kOriginsWithMaxEngagementHistogram, 0, 3); |
660 histograms.ExpectBucketCount( | 690 histograms.ExpectBucketCount( |
661 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 2); | 691 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 0, 2); |
662 histograms.ExpectBucketCount( | 692 histograms.ExpectBucketCount( |
663 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 1, 1); | 693 SiteEngagementMetrics::kOriginsWithMaxDailyEngagementHistogram, 1, 1); |
664 histograms.ExpectUniqueSample( | 694 histograms.ExpectUniqueSample( |
665 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 3); | 695 SiteEngagementMetrics::kPercentOriginsWithMaxEngagementHistogram, 0, 3); |
666 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 696 histograms.ExpectTotalCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
667 19); | 697 21); |
668 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | 698 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, |
669 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, | 699 SiteEngagementMetrics::ENGAGEMENT_NAVIGATION, |
670 13); | 700 13); |
671 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | |
672 SiteEngagementMetrics::ENGAGEMENT_KEYPRESS, 3); | |
673 histograms.ExpectBucketCount(SiteEngagementMetrics::kEngagementTypeHistogram, | |
674 SiteEngagementMetrics::ENGAGEMENT_MOUSE, 3); | |
675 } | 701 } |
676 | 702 |
677 // Expect that sites that have reached zero engagement are cleaned up. | 703 // Expect that sites that have reached zero engagement are cleaned up. |
678 TEST_F(SiteEngagementServiceTest, CleanupEngagementScores) { | 704 TEST_F(SiteEngagementServiceTest, CleanupEngagementScores) { |
679 base::SimpleTestClock* clock = new base::SimpleTestClock(); | 705 base::SimpleTestClock* clock = new base::SimpleTestClock(); |
680 scoped_ptr<SiteEngagementService> service( | 706 scoped_ptr<SiteEngagementService> service( |
681 new SiteEngagementService(profile(), make_scoped_ptr(clock))); | 707 new SiteEngagementService(profile(), make_scoped_ptr(clock))); |
682 | 708 |
683 base::Time current_day = GetReferenceTime(); | 709 base::Time current_day = GetReferenceTime(); |
684 clock->SetNow(current_day); | 710 clock->SetNow(current_day); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // Other transition types should not accumulate engagement. | 828 // Other transition types should not accumulate engagement. |
803 NavigateWithTransitionAndExpectEqualScore(service, url, | 829 NavigateWithTransitionAndExpectEqualScore(service, url, |
804 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); | 830 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); |
805 NavigateWithTransitionAndExpectEqualScore(service, url, | 831 NavigateWithTransitionAndExpectEqualScore(service, url, |
806 ui::PAGE_TRANSITION_LINK); | 832 ui::PAGE_TRANSITION_LINK); |
807 NavigateWithTransitionAndExpectEqualScore(service, url, | 833 NavigateWithTransitionAndExpectEqualScore(service, url, |
808 ui::PAGE_TRANSITION_RELOAD); | 834 ui::PAGE_TRANSITION_RELOAD); |
809 NavigateWithTransitionAndExpectEqualScore(service, url, | 835 NavigateWithTransitionAndExpectEqualScore(service, url, |
810 ui::PAGE_TRANSITION_FORM_SUBMIT); | 836 ui::PAGE_TRANSITION_FORM_SUBMIT); |
811 } | 837 } |
OLD | NEW |