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

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

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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef DEVICE_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
6 #define DEVICE_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "device/geolocation/access_token_store.h" 11 #include "content/public/browser/access_token_store.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace device { 15 namespace content {
16 16
17 // A fake (non-persisted) access token store instance useful for testing. 17 // A fake (non-persisted) access token store instance useful for testing.
18 class FakeAccessTokenStore : public AccessTokenStore { 18 class FakeAccessTokenStore : public AccessTokenStore {
19 public: 19 public:
20 FakeAccessTokenStore(); 20 FakeAccessTokenStore();
21 21
22 void NotifyDelegateTokensLoaded(); 22 void NotifyDelegateTokensLoaded();
23 23
24 // AccessTokenStore 24 // AccessTokenStore
25 MOCK_METHOD1(LoadAccessTokens, 25 MOCK_METHOD1(LoadAccessTokens,
(...skipping 16 matching lines...) Expand all
42 42
43 private: 43 private:
44 // In some tests, NotifyDelegateTokensLoaded() is called on a thread 44 // In some tests, NotifyDelegateTokensLoaded() is called on a thread
45 // other than the originating thread, in which case we must post 45 // other than the originating thread, in which case we must post
46 // back to it. 46 // back to it.
47 scoped_refptr<base::SingleThreadTaskRunner> originating_task_runner_; 47 scoped_refptr<base::SingleThreadTaskRunner> originating_task_runner_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); 49 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore);
50 }; 50 };
51 51
52 } // namespace device 52 } // namespace content
53 53
54 #endif // DEVICE_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 54 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/empty_wifi_data_provider.cc ('k') | content/browser/geolocation/fake_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698