• Home
  • Raw
  • Download

Lines Matching refs:Service

142   void SetStateField(Service::ConnectState state) { service_->state_ = state; }  in SetStateField()
144 Service::ConnectState GetPreviousState() const { in GetPreviousState()
175 return Service::kDisconnectsMonitorSeconds; in GetDisconnectsMonitorSeconds()
179 return Service::kMisconnectsMonitorSeconds; in GetMisconnectsMonitorSeconds()
183 return Service::kMaxDisconnectEventHistory; in GetMaxDisconnectEventHistory()
187 return Service::kMaxMisconnectEventHistory; in GetMaxMisconnectEventHistory()
256 EXPECT_EQ(Service::kCheckPortalAuto, service_->check_portal_); in TEST_F()
257 EXPECT_EQ(Service::kStateIdle, service_->state()); in TEST_F()
264 service_->state_ = Service::kStateConnected; in TEST_F()
430 void OnEapCredentialsChanged(Service::UpdateCredentialsReason) override { in OnEapCredentialsChanged()
463 EXPECT_CALL(storage, GetString(storage_id_, Service::kStorageCheckPortal, _)) in TEST_F()
465 EXPECT_CALL(storage, GetString(storage_id_, Service::kStorageGUID, _)) in TEST_F()
467 EXPECT_CALL(storage, GetInt(storage_id_, Service::kStoragePriority, _)) in TEST_F()
469 EXPECT_CALL(storage, GetString(storage_id_, Service::kStorageProxyConfig, _)) in TEST_F()
471 EXPECT_CALL(storage, GetString(storage_id_, Service::kStorageUIData, _)) in TEST_F()
475 GetBool(storage_id_, Service::kStorageSaveCredentials, _)); in TEST_F()
477 GetBool(storage_id_, Service::kStorageHasEverConnected, _)) in TEST_F()
514 EXPECT_EQ(Service::kCheckPortalAuto, service_->check_portal_); in TEST_F()
552 EXPECT_CALL(storage, GetBool(storage_id_, Service::kStorageAutoConnect, _)) in TEST_F()
562 EXPECT_CALL(storage, GetBool(storage_id_, Service::kStorageFavorite, _)) in TEST_F()
661 EXPECT_CALL(storage, DeleteKey(storage_id_, Service::kStorageFavorite)) in TEST_F()
663 EXPECT_CALL(storage, DeleteKey(storage_id_, Service::kStorageAutoConnect)) in TEST_F()
668 Service::kStorageSaveCredentials, in TEST_F()
687 EXPECT_CALL(storage, DeleteKey(storage_id_, Service::kStorageFavorite)) in TEST_F()
689 EXPECT_CALL(storage, DeleteKey(storage_id_, Service::kStorageAutoConnect)) in TEST_F()
699 SetBool(storage_id_, Service::kStorageAutoConnect, true)); in TEST_F()
704 SetBool(storage_id_, Service::kStorageAutoConnect, false)); in TEST_F()
718 DeleteKey(storage_id_, Service::kStorageHasEverConnected)) in TEST_F()
728 SetBool(storage_id_, Service::kStorageHasEverConnected, true)); in TEST_F()
733 SetBool(storage_id_, Service::kStorageHasEverConnected, false)); in TEST_F()
777 EXPECT_EQ(Service::kStateIdle, service_->state()); in TEST_F()
778 EXPECT_EQ(Service::kStateIdle, GetPreviousState()); in TEST_F()
779 EXPECT_EQ(Service::kFailureUnknown, service_->failure()); in TEST_F()
781 Service::ConnectFailureToString(Service::kFailureUnknown)); in TEST_F()
789 service_->SetState(Service::kStateConnected); in TEST_F()
790 EXPECT_EQ(Service::kStateIdle, GetPreviousState()); in TEST_F()
792 service_->SetState(Service::kStateConnected); in TEST_F()
793 EXPECT_EQ(Service::kStateConnected, service_->state()); in TEST_F()
794 EXPECT_EQ(Service::kStateIdle, GetPreviousState()); in TEST_F()
795 EXPECT_EQ(Service::kFailureUnknown, service_->failure()); in TEST_F()
799 service_->SetFailure(Service::kFailureOutOfRange); in TEST_F()
803 EXPECT_EQ(Service::kStateFailure, service_->state()); in TEST_F()
804 EXPECT_EQ(Service::kFailureOutOfRange, service_->failure()); in TEST_F()
806 Service::ConnectFailureToString(Service::kFailureOutOfRange)); in TEST_F()
811 service_->SetState(Service::kStateConnected); in TEST_F()
819 service_->SetFailureSilent(Service::kFailurePinMissing); in TEST_F()
823 EXPECT_EQ(Service::kStateIdle, service_->state()); in TEST_F()
824 EXPECT_EQ(Service::kFailurePinMissing, service_->failure()); in TEST_F()
826 Service::ConnectFailureToString(Service::kFailurePinMissing)); in TEST_F()
842 service_->SetState(Service::kStateConnected); in TEST_F()
849 service_->state_ = Service::kStateIdle; // Skips state change logic. in TEST_F()
854 service_->SetState(Service::kStateConnected); in TEST_F()
875 service_->SetFailure(Service::kFailureOutOfRange); in TEST_F()
876 EXPECT_EQ(Service::kStateFailure, service_->state()); in TEST_F()
879 EXPECT_EQ(Service::kStateIdle, service_->state()); in TEST_F()
880 EXPECT_EQ(Service::kFailureUnknown, service_->failure()); in TEST_F()
882 service_->SetState(Service::kStateConnected); in TEST_F()
884 EXPECT_EQ(Service::kStateConnected, service_->state()); in TEST_F()
891 service_->SetState(Service::kStateIdle); in TEST_F()
898 service_->SetState(Service::kStateConnected); in TEST_F()
902 service_->SetState(Service::kStateIdle); in TEST_F()
909 Service::kFailureDHCP)); in TEST_F()
910 service_->SetFailure(Service::kFailureDHCP); in TEST_F()
914 service_->SetState(Service::kStateIdle); in TEST_F()
916 service_->SetState(Service::kStateAssociating); in TEST_F()
922 service_->SetState(Service::kStateIdle); in TEST_F()
926 service_->SetState(Service::kStateIdle); in TEST_F()
931 service_->SetState(Service::kStateAssociating); in TEST_F()
932 service_->SetState(Service::kStateConfiguring); in TEST_F()
936 service_->SetState(Service::kStateIdle); in TEST_F()
941 service_->SetState(Service::kStateConnected); in TEST_F()
946 service_->SetState(Service::kStateIdle); in TEST_F()
951 service_->SetFailure(Service::kFailureDHCP); in TEST_F()
999 EXPECT_STREQ(Service::kAutoConnOffline, reason); in TEST_F()
1009 EXPECT_STREQ(Service::kAutoConnExplicitDisconnect, reason); in TEST_F()
1037 service_->SetState(Service::kStateConnected); in TEST_F()
1039 EXPECT_STREQ(Service::kAutoConnConnected, reason); in TEST_F()
1041 service_->SetState(Service::kStateAssociating); in TEST_F()
1043 EXPECT_STREQ(Service::kAutoConnConnecting, reason); in TEST_F()
1045 service_->SetState(Service::kStateIdle); in TEST_F()
1049 EXPECT_STREQ(Service::kAutoConnTechnologyNotConnectable, reason); in TEST_F()
1059 service_->SetState(Service::kStateConnected); in TEST_F()
1060 EXPECT_CALL(log, Log(-1, _, HasSubstr(Service::kAutoConnConnected))); in TEST_F()
1066 HasSubstr(Service::kAutoConnNotConnectable))); in TEST_F()
1086 Service::kMinAutoConnectCooldownTimeMilliseconds)); in TEST_F()
1090 EXPECT_STREQ(Service::kAutoConnThrottled, reason); in TEST_F()
1098 EXPECT_STREQ(Service::kAutoConnThrottled, reason); in TEST_F()
1107 Service::kAutoConnectCooldownBackoffFactor * in TEST_F()
1108 Service::kMinAutoConnectCooldownTimeMilliseconds); in TEST_F()
1110 Service::kMaxAutoConnectCooldownTimeMilliseconds) { in TEST_F()
1115 EXPECT_STREQ(Service::kAutoConnThrottled, reason); in TEST_F()
1117 next_cooldown_time *= Service::kAutoConnectCooldownBackoffFactor; in TEST_F()
1123 Service::kMaxAutoConnectCooldownTimeMilliseconds)); in TEST_F()
1127 EXPECT_STREQ(Service::kAutoConnThrottled, reason); in TEST_F()
1132 service_->SetState(Service::kStateConnected); in TEST_F()
1133 service_->SetState(Service::kStateIdle); in TEST_F()
1141 Service::kMinAutoConnectCooldownTimeMilliseconds)).Times(1); in TEST_F()
1146 EXPECT_STREQ(Service::kAutoConnThrottled, reason); in TEST_F()
1428 service_->state_ = Service::kStateIdle; in TEST_F()
1432 service_->state_ = Service::kStatePortal; in TEST_F()
1437 service_->state_ = Service::kStateConnected; in TEST_F()
1442 service_->state_ = Service::kStateOnline; in TEST_F()
1447 service_->state_ = Service::kStatePortal; in TEST_F()
1457 EXPECT_EQ(Service::kCheckPortalFalse, service_->check_portal_); in TEST_F()
1463 EXPECT_EQ(Service::kCheckPortalTrue, service_->check_portal_); in TEST_F()
1469 EXPECT_EQ(Service::kCheckPortalAuto, service_->check_portal_); in TEST_F()
1476 EXPECT_EQ(Service::kCheckPortalAuto, service_->check_portal_); in TEST_F()
1604 MOCK_METHOD1(OnEapCredentialsChanged, void(Service::UpdateCredentialsReason));
1652 Service::kReasonPropertyUpdate)).Times(1); in TEST_F()
1661 OnEapCredentialsChanged(Service::kReasonPropertyUpdate)).Times(1); in TEST_F()
1678 kSubject, Service::kEAPMaxCertificationElements)); in TEST_F()
1680 kSubject, Service::kEAPMaxCertificationElements + 1)); in TEST_F()
1688 kSubject, Service::kEAPMaxCertificationElements - 1)); in TEST_F()
1690 EXPECT_EQ(Service::kEAPMaxCertificationElements, in TEST_F()
1692 for (size_t i = 0; i < Service::kEAPMaxCertificationElements - 1; ++i) { in TEST_F()
1696 Service::kEAPMaxCertificationElements - 1]); in TEST_F()
1701 kSubject, Service::kEAPMaxCertificationElements - 1)); in TEST_F()
1708 kSubject + "x", Service::kEAPMaxCertificationElements - 1)); in TEST_F()
1718 SetStateField(Service::kStateOnline); in TEST_F()
1720 service_->SetState(Service::kStateIdle); in TEST_F()
1723 service_->SetState(Service::kStateFailure); in TEST_F()
1731 SetStateField(Service::kStateOnline); in TEST_F()
1733 service_->SetState(Service::kStateFailure); in TEST_F()
1740 SetStateField(Service::kStateConfiguring); in TEST_F()
1742 service_->SetFailureSilent(Service::kFailureEAPAuthentication); in TEST_F()
1750 SetStateField(Service::kStateOnline); in TEST_F()
1757 SetStateField(Service::kStateFailure); in TEST_F()
1764 SetStateField(Service::kStateOnline); in TEST_F()
1781 SetStateField(Service::kStateOnline); in TEST_F()
1808 SetStateField(Service::kStateConfiguring); in TEST_F()
1838 SetStateField(Service::kStateConnected); in TEST_F()
1842 SetStateField(Service::kStateAssociating); in TEST_F()
1857 SetStateField(Service::kStateOnline); in TEST_F()
1868 SetStateField(Service::kStateAssociating); in TEST_F()
1898 service_->SetSecurity(Service::kCryptoNone, false, false); in TEST_F()
1899 service2_->SetSecurity(Service::kCryptoRc4, false, false); in TEST_F()
1903 service_->SetSecurity(Service::kCryptoRc4, false, false); in TEST_F()
1904 service2_->SetSecurity(Service::kCryptoAes, false, false); in TEST_F()
1908 service_->SetSecurity(Service::kCryptoNone, true, false); in TEST_F()
1909 service2_->SetSecurity(Service::kCryptoAes, false, false); in TEST_F()
1913 service_->SetSecurity(Service::kCryptoNone, false, true); in TEST_F()
1914 service2_->SetSecurity(Service::kCryptoAes, false, false); in TEST_F()
1918 service_->SetSecurity(Service::kCryptoRc4, false, false); in TEST_F()
1919 service2_->SetSecurity(Service::kCryptoRc4, true, false); in TEST_F()
1923 service_->SetSecurity(Service::kCryptoRc4, false, false); in TEST_F()
1924 service2_->SetSecurity(Service::kCryptoRc4, false, true); in TEST_F()
1929 EXPECT_EQ(Service::kErrorDetailsNone, service_->error_details()); in TEST_F()
1933 service_->SetErrorDetails(Service::kErrorDetailsNone); in TEST_F()
1934 EXPECT_EQ(Service::kErrorDetailsNone, service_->error_details()); in TEST_F()
2186 service2->SetSecurity(Service::kCryptoAes, true, true); in TEST_F()
2257 .WillRepeatedly(Return(Service::kStateIdle)); in TEST_F()
2261 .WillRepeatedly(Return(Service::kStateFailure)); in TEST_F()
2268 .WillRepeatedly(Return(Service::kStateAssociating)); in TEST_F()
2275 .WillRepeatedly(Return(Service::kStatePortal)); in TEST_F()
2284 .WillRepeatedly(Return(Service::kStateConnected)); in TEST_F()
2291 .WillRepeatedly(Return(Service::kStateOnline)); in TEST_F()