Home | History | Annotate | Download | only in common

Lines Matching defs:FakePrefs

25 using chromeos_update_engine::FakePrefs;
38 FakePrefs::~FakePrefs() {
44 FakePrefs::PrefType const FakePrefs::PrefConsts<string>::type =
45 FakePrefs::PrefType::kString;
47 string FakePrefs::PrefValue::* const // NOLINT(runtime/string), not static str.
48 FakePrefs::PrefConsts<string>::member = &FakePrefs::PrefValue::as_str;
51 FakePrefs::PrefType const FakePrefs::PrefConsts<int64_t>::type =
52 FakePrefs::PrefType::kInt64;
54 int64_t FakePrefs::PrefValue::* const FakePrefs::PrefConsts<int64_t>::member =
55 &FakePrefs::PrefValue::as_int64;
58 FakePrefs::PrefType const FakePrefs::PrefConsts<bool>::type =
59 FakePrefs::PrefType::kBool;
61 bool FakePrefs::PrefValue::* const FakePrefs::PrefConsts<bool>::member =
62 &FakePrefs::PrefValue::as_bool;
64 bool FakePrefs::GetString(const string& key, string* value) const {
68 bool FakePrefs::SetString(const string& key, const string& value) {
73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const {
77 bool FakePrefs::SetInt64(const string& key, const int64_t value) {
82 bool FakePrefs::GetBoolean(const string& key, bool* value) const {
86 bool FakePrefs::SetBoolean(const string& key, const bool value) {
91 bool FakePrefs::Exists(const string& key) const {
95 bool FakePrefs::Delete(const string& key) {
108 string FakePrefs::GetTypeName(PrefType type) {
120 void FakePrefs::CheckKeyType(const string& key, PrefType type) const {
128 void FakePrefs::SetValue(const string& key, const T& value) {
141 bool FakePrefs::GetValue(const string& key, T* value) const {
151 void FakePrefs::AddObserver(const string& key, ObserverInterface* observer) {
155 void FakePrefs::RemoveObserver(const string& key, ObserverInterface* observer) {