Lines Matching defs:intKey
55 int PreferencesPutValue(std::shared_ptr<Preferences> pref, const std::string &intKey, int intValue,
58 pref->PutInt(intKey, intValue);
81 elem.key_ = "intKey";
90 int ret = pref->GetInt("intKey", 0);
151 ret = PreferencesPutValue(pref, "intKey", 1, "stringKey", "string1");
154 EXPECT_EQ(1, pref->GetInt("intKey", 0));
165 EXPECT_EQ(1, pref->GetInt("intKey", 0));
169 ret = PreferencesPutValue(pref, "intKey", i, "stringKey", "string" + std::to_string(i));
173 EXPECT_EQ(5, pref->GetInt("intKey", 0));
184 EXPECT_EQ(5, pref->GetInt("intKey", 0));
209 ret = PreferencesPutValue(pref, "intKey", 1, "stringKey", "string1");
212 EXPECT_EQ(1, pref->GetInt("intKey", 0));
225 EXPECT_EQ(1, pref->GetInt("intKey", 0));
229 ret = PreferencesPutValue(pref, "intKey", i, "stringKey", "string" + std::to_string(i));
233 EXPECT_EQ(5, pref->GetInt("intKey", 0));
246 EXPECT_EQ(5, pref->GetInt("intKey", 0));