Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: content/browser/geolocation/fake_access_token_store.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "device/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/threading/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 device { 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));
21 ON_CALL(*this, SaveAccessToken(_, _)) 21 ON_CALL(*this, SaveAccessToken(_, _))
22 .WillByDefault(Invoke(this, 22 .WillByDefault(Invoke(this,
23 &FakeAccessTokenStore::DefaultSaveAccessToken)); 23 &FakeAccessTokenStore::DefaultSaveAccessToken));
24 } 24 }
25 25
(...skipping 17 matching lines...) Expand all
43 } 43 }
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 device 53 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/fake_access_token_store.h ('k') | content/browser/geolocation/geolocation_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698