| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/geolocation/fake_access_token_store.h" | 5 #include "content/browser/geolocation/fake_access_token_store.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 | 11 |
| 12 using testing::_; | 12 using testing::_; |
| 13 using testing::Invoke; | 13 using testing::Invoke; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 FakeAccessTokenStore::FakeAccessTokenStore() { | 17 FakeAccessTokenStore::FakeAccessTokenStore() { |
| 18 ON_CALL(*this, LoadAccessTokens(_)) | 18 ON_CALL(*this, LoadAccessTokens(_)) |
| 19 .WillByDefault(Invoke(this, | 19 .WillByDefault(Invoke(this, |
| 20 &FakeAccessTokenStore::DefaultLoadAccessTokens)); | 20 &FakeAccessTokenStore::DefaultLoadAccessTokens)); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 void FakeAccessTokenStore::DefaultSaveAccessToken( | 45 void FakeAccessTokenStore::DefaultSaveAccessToken( |
| 46 const GURL& server_url, const base::string16& access_token) { | 46 const GURL& server_url, const base::string16& access_token) { |
| 47 DCHECK(server_url.is_valid()); | 47 DCHECK(server_url.is_valid()); |
| 48 access_token_map_[server_url] = access_token; | 48 access_token_map_[server_url] = access_token; |
| 49 } | 49 } |
| 50 | 50 |
| 51 FakeAccessTokenStore::~FakeAccessTokenStore() {} | 51 FakeAccessTokenStore::~FakeAccessTokenStore() {} |
| 52 | 52 |
| 53 } // namespace content | 53 } // namespace content |
| OLD | NEW |