Lines Matching refs:config1
485 ResTable_config config1, config2, request; in TEST() local
488 fillIn("fr", "FR", NULL, NULL, &config1); in TEST()
490 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
491 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
494 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST()
496 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
497 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
500 fillIn("fr", "FR", NULL, NULL, &config1); in TEST()
502 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
503 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
506 fillIn("de", "DE", NULL, NULL, &config1); in TEST()
508 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
509 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
512 fillIn("de", "DE", NULL, "1901", &config1); in TEST()
514 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
515 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
518 fillIn("de", "DE", NULL, "1901", &config1); in TEST()
520 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
521 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
524 fillIn("de", "DE", NULL, "1996", &config1); in TEST()
526 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
527 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
530 fillIn("tl", "PH", NULL, NULL, &config1); in TEST()
532 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
533 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
536 fillIn("tl", "PH", NULL, "fonipa", &config1); in TEST()
538 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
539 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
542 fillIn("fil", "PH", NULL, NULL, &config1); in TEST()
544 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
545 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
549 ResTable_config config1, config2, request; in TEST() local
552 fillIn("es", "419", NULL, NULL, &config1); in TEST()
555 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
556 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
559 fillIn("es", "AR", NULL, NULL, &config1); in TEST()
562 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
563 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
566 fillIn("es", "419", NULL, NULL, &config1); in TEST()
569 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
570 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
573 fillIn("es", "419", NULL, NULL, &config1); in TEST()
576 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
577 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
580 fillIn("es", NULL, NULL, NULL, &config1); in TEST()
583 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
584 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
587 fillIn("es", "PE", NULL, NULL, &config1); in TEST()
590 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
591 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
594 fillIn("es", "US", NULL, NULL, &config1); in TEST()
598 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
599 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
602 fillIn("es", "US", NULL, NULL, &config1); in TEST()
606 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
607 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
610 fillIn("es", "MX", NULL, NULL, &config1); in TEST()
614 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
615 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
618 fillIn("es", "MX", NULL, NULL, &config1); in TEST()
622 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
623 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
626 fillIn("es", "419", NULL, NULL, &config1); in TEST()
630 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
631 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
634 fillIn("es", "419", NULL, NULL, &config1); in TEST()
638 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
639 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
642 fillIn("es", "419", NULL, NULL, &config1); in TEST()
646 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
647 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
650 fillIn("es", "MX", NULL, NULL, &config1); in TEST()
654 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
655 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
658 fillIn("es", "US", NULL, NULL, &config1); in TEST()
662 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
663 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
666 fillIn("es", "ES", NULL, NULL, &config1); in TEST()
669 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
670 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
673 fillIn("es", "MX", NULL, NULL, &config1); in TEST()
676 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
677 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
680 fillIn("es", "IC", NULL, NULL, &config1); in TEST()
684 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
685 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
688 fillIn("en", "001", NULL, NULL, &config1); in TEST()
691 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
692 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
695 fillIn("en", NULL, NULL, NULL, &config1); in TEST()
698 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
699 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
702 fillIn("en", "150", NULL, NULL, &config1); in TEST()
705 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
706 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
709 fillIn("en", "AU", NULL, NULL, &config1); in TEST()
712 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
713 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
716 fillIn("en", "001", NULL, NULL, &config1); in TEST()
719 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
720 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
723 fillIn("en", "GB", NULL, NULL, &config1); in TEST()
726 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
727 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
730 fillIn("en", "AU", NULL, NULL, &config1); in TEST()
733 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
734 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
737 fillIn("pt", "PT", NULL, NULL, &config1); in TEST()
740 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
741 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
744 fillIn("pt", "PT", NULL, NULL, &config1); in TEST()
747 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
748 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
751 fillIn("zh", "HK", "Hant", NULL, &config1); in TEST()
754 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
755 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
758 fillIn("zh", "TW", "Hant", NULL, &config1); in TEST()
761 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
762 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
765 fillIn("ar", "015", NULL, NULL, &config1); in TEST()
768 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
769 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
772 fillIn("ar", NULL, NULL, NULL, &config1); in TEST()
775 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
776 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
779 fillIn("ar", "EG", NULL, NULL, &config1); in TEST()
782 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
783 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
786 fillIn("ar", "SA", NULL, NULL, &config1); in TEST()
790 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
791 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
795 ResTable_config config1, config2, request; in TEST() local
799 fillIn("ar", NULL, NULL, NULL, &config1); in TEST()
800 memcpy(&config1.localeNumberingSystem, "latn", 4); in TEST()
802 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
803 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
807 fillIn("ar", "TN", NULL, NULL, &config1); in TEST()
808 memcpy(&config1.localeNumberingSystem, "latn", 4); in TEST()
810 EXPECT_TRUE(config2.isLocaleBetterThan(config1, &request)); in TEST()
811 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
817 ResTable_config config1, config2, request; in TEST() local
820 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST()
823 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
824 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
827 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST()
830 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
831 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
834 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST()
837 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
838 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
841 fillIn("en", NULL, NULL, NULL, &config1); in TEST()
844 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
845 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
848 fillIn("en", NULL, NULL, NULL, &config1); in TEST()
851 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
852 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
855 fillIn(NULL, NULL, NULL, NULL, &config1); in TEST()
858 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
859 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()