Lines Matching refs:cache_
21 TokenCacheTest() : cache_(NULL) {}
25 return cache_.token_cache_.size();
29 return cache_.RetrieveToken(token_name) != std::string();
45 cache_.token_cache_[token_name] = token_data;
49 TokenCacheService cache_;
54 cache_.StoreToken("foo", "bar", zero);
62 cache_.StoreToken("Mozart", "Eine Kleine Nacht Musik", zero);
63 cache_.StoreToken("Bach", "Brandenburg Concerto #3", zero);
64 cache_.StoreToken("Beethoven", "Emperor Piano Concerto #5", zero);
65 cache_.StoreToken("Handel", "Water Music", zero);
66 cache_.StoreToken("Chopin", "Heroic", zero);
68 std::string found_token = cache_.RetrieveToken("Chopin");
74 cache_.StoreToken("Chopin", "Heroic", zero);
76 std::string found_token = cache_.RetrieveToken("Chopin");
79 cache_.StoreToken("Chopin", "Military", zero);
81 found_token = cache_.RetrieveToken("Chopin");
88 cache_.StoreToken("foo", "bar", zero);
95 cache_.Observe(chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,