Merge "Fix AccountSetupExchangeTests.testLoadFields()"
This commit is contained in:
commit
62c76bcb23
|
@ -142,8 +142,8 @@ public class AccountSetupExchangeTests extends
|
|||
// "trust certificates" checkbox (not checked, but visible now).
|
||||
Account account =
|
||||
ProviderTestUtils.setupAccount("account", false, mActivity.getBaseContext());
|
||||
account.mHostAuthRecv =
|
||||
ProviderTestUtils.setupHostAuth("hostauth", 1, false, mActivity.getBaseContext());
|
||||
account.mHostAuthRecv = ProviderTestUtils.setupHostAuth(
|
||||
"eas", "hostauth", 1, false, mActivity.getBaseContext());
|
||||
account.mHostAuthRecv.mFlags |= HostAuth.FLAG_SSL;
|
||||
account.mHostAuthRecv.mFlags &= ~HostAuth.FLAG_TRUST_ALL_CERTIFICATES;
|
||||
mActivity.loadFields(account);
|
||||
|
|
|
@ -68,9 +68,17 @@ public class ProviderTestUtils extends Assert {
|
|||
*/
|
||||
public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt,
|
||||
Context context) {
|
||||
return setupHostAuth("protocol", name, accountId, saveIt, context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a hostauth record for test purposes
|
||||
*/
|
||||
public static HostAuth setupHostAuth(String protocol, String name, long accountId,
|
||||
boolean saveIt, Context context) {
|
||||
HostAuth hostAuth = new HostAuth();
|
||||
|
||||
hostAuth.mProtocol = "protocol-" + name;
|
||||
hostAuth.mProtocol = protocol + "-" + name;
|
||||
hostAuth.mAddress = "address-" + name;
|
||||
hostAuth.mPort = 100;
|
||||
hostAuth.mFlags = 200;
|
||||
|
|
Loading…
Reference in New Issue