1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/tests/background/junit3/src/sync/helpers/PasswordHelpers.java Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,94 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +package org.mozilla.gecko.background.sync.helpers; 1.8 + 1.9 +import org.mozilla.gecko.sync.repositories.domain.PasswordRecord; 1.10 + 1.11 +public class PasswordHelpers { 1.12 + 1.13 + public static PasswordRecord createPassword1() { 1.14 + PasswordRecord rec = new PasswordRecord(); 1.15 + rec.encType = "some type"; 1.16 + rec.formSubmitURL = "http://submit.html"; 1.17 + rec.hostname = "http://hostname"; 1.18 + rec.httpRealm = "httpRealm"; 1.19 + rec.encryptedPassword ="12345"; 1.20 + rec.passwordField = "box.pass.field"; 1.21 + rec.timeCreated = 111111111L; 1.22 + rec.timeLastUsed = 123412352435L; 1.23 + rec.timePasswordChanged = 121111111L; 1.24 + rec.timesUsed = 5L; 1.25 + rec.encryptedUsername = "jvoll"; 1.26 + rec.usernameField = "box.user.field"; 1.27 + return rec; 1.28 + } 1.29 + 1.30 + public static PasswordRecord createPassword2() { 1.31 + PasswordRecord rec = new PasswordRecord(); 1.32 + rec.encType = "some type"; 1.33 + rec.formSubmitURL = "http://submit2.html"; 1.34 + rec.hostname = "http://hostname2"; 1.35 + rec.httpRealm = "httpRealm2"; 1.36 + rec.encryptedPassword ="54321"; 1.37 + rec.passwordField = "box.pass.field2"; 1.38 + rec.timeCreated = 12111111111L; 1.39 + rec.timeLastUsed = 123412352213L; 1.40 + rec.timePasswordChanged = 123111111111L; 1.41 + rec.timesUsed = 2L; 1.42 + rec.encryptedUsername = "rnewman"; 1.43 + rec.usernameField = "box.user.field2"; 1.44 + return rec; 1.45 + } 1.46 + 1.47 + public static PasswordRecord createPassword3() { 1.48 + PasswordRecord rec = new PasswordRecord(); 1.49 + rec.encType = "some type3"; 1.50 + rec.formSubmitURL = "http://submit3.html"; 1.51 + rec.hostname = "http://hostname3"; 1.52 + rec.httpRealm = "httpRealm3"; 1.53 + rec.encryptedPassword ="54321"; 1.54 + rec.passwordField = "box.pass.field3"; 1.55 + rec.timeCreated = 100000000000L; 1.56 + rec.timeLastUsed = 123412352213L; 1.57 + rec.timePasswordChanged = 110000000000L; 1.58 + rec.timesUsed = 2L; 1.59 + rec.encryptedUsername = "rnewman"; 1.60 + rec.usernameField = "box.user.field3"; 1.61 + return rec; 1.62 + } 1.63 + 1.64 + public static PasswordRecord createPassword4() { 1.65 + PasswordRecord rec = new PasswordRecord(); 1.66 + rec.encType = "some type"; 1.67 + rec.formSubmitURL = "http://submit4.html"; 1.68 + rec.hostname = "http://hostname4"; 1.69 + rec.httpRealm = "httpRealm4"; 1.70 + rec.encryptedPassword ="54324"; 1.71 + rec.passwordField = "box.pass.field4"; 1.72 + rec.timeCreated = 101000000000L; 1.73 + rec.timeLastUsed = 123412354444L; 1.74 + rec.timePasswordChanged = 110000000000L; 1.75 + rec.timesUsed = 4L; 1.76 + rec.encryptedUsername = "rnewman4"; 1.77 + rec.usernameField = "box.user.field4"; 1.78 + return rec; 1.79 + } 1.80 + 1.81 + public static PasswordRecord createPassword5() { 1.82 + PasswordRecord rec = new PasswordRecord(); 1.83 + rec.encType = "some type5"; 1.84 + rec.formSubmitURL = "http://submit5.html"; 1.85 + rec.hostname = "http://hostname5"; 1.86 + rec.httpRealm = "httpRealm5"; 1.87 + rec.encryptedPassword ="54325"; 1.88 + rec.passwordField = "box.pass.field5"; 1.89 + rec.timeCreated = 101000000000L; 1.90 + rec.timeLastUsed = 123412352555L; 1.91 + rec.timePasswordChanged = 111111111111L; 1.92 + rec.timesUsed = 5L; 1.93 + rec.encryptedUsername = "jvoll5"; 1.94 + rec.usernameField = "box.user.field5"; 1.95 + return rec; 1.96 + } 1.97 +}