Lines Matching refs:accounts
98 EXPECT_TRUE(IsGaiaSignonRealm(GURL("https://accounts.google.com/")));
99 EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://accounts.google.com/")));
112 std::vector<std::pair<std::string, bool> > accounts;
113 ASSERT_FALSE(ParseListAccountsData("", &accounts));
114 ASSERT_EQ(0u, accounts.size());
116 ASSERT_FALSE(ParseListAccountsData("1", &accounts));
117 ASSERT_EQ(0u, accounts.size());
119 ASSERT_FALSE(ParseListAccountsData("[]", &accounts));
120 ASSERT_EQ(0u, accounts.size());
122 ASSERT_FALSE(ParseListAccountsData("[\"foo\", \"bar\"]", &accounts));
123 ASSERT_EQ(0u, accounts.size());
125 ASSERT_TRUE(ParseListAccountsData("[\"foo\", []]", &accounts));
126 ASSERT_EQ(0u, accounts.size());
129 "[\"foo\", [[\"bar\", 0, \"name\", 0, \"photo\", 0, 0, 0]]]", &accounts));
130 ASSERT_EQ(0u, accounts.size());
134 &accounts));
135 ASSERT_EQ(1u, accounts.size());
136 ASSERT_EQ("u@g.c", accounts[0].first);
137 ASSERT_TRUE(accounts[0].second);
142 &accounts));
143 ASSERT_EQ(2u, accounts.size());
144 ASSERT_EQ("u1@g.c", accounts[0].first);
145 ASSERT_TRUE(accounts[0].second);
146 ASSERT_EQ("u2@g.c", accounts[1].first);
147 ASSERT_TRUE(accounts[1].second);
152 &accounts));
153 ASSERT_EQ(2u, accounts.size());
154 ASSERT_EQ(CanonicalizeEmail("U1@g.c"), accounts[0].first);
155 ASSERT_TRUE(accounts[0].second);
156 ASSERT_EQ(CanonicalizeEmail("u.2@g.c"), accounts[1].first);
157 ASSERT_TRUE(accounts[1].second);
161 std::vector<std::pair<std::string, bool> > accounts;
166 &accounts));
167 ASSERT_EQ(1u, accounts.size());
168 ASSERT_EQ("u@g.c", accounts[0].first);
169 ASSERT_TRUE(accounts[0].second);
174 &accounts));
175 ASSERT_EQ(1u, accounts.size());
176 ASSERT_EQ("u@g.c", accounts[0].first);
177 ASSERT_TRUE(accounts[0].second);
182 &accounts));
183 ASSERT_EQ(1u, accounts.size());
184 ASSERT_FALSE(accounts[0].second);