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

Side by Side Diff: chrome/browser/geolocation/access_token_store_browsertest.cc

Issue 6597044: Revert 76228 - Move core pieces of geolocation from chrome to content.This is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/access_token_store.h" 5 #include "chrome/browser/geolocation/access_token_store.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_thread.h"
9 #include "chrome/test/in_process_browser_test.h" 10 #include "chrome/test/in_process_browser_test.h"
10 #include "chrome/test/ui_test_utils.h" 11 #include "chrome/test/ui_test_utils.h"
11 #include "content/browser/browser_thread.h"
12 12
13 namespace { 13 namespace {
14 14
15 // The token store factory implementation expects to be used from any well-known 15 // The token store factory implementation expects to be used from any well-known
16 // chrome thread other than UI. We could use any arbitrary thread; IO is 16 // chrome thread other than UI. We could use any arbitrary thread; IO is
17 // a good choice as this is the expected usage. 17 // a good choice as this is the expected usage.
18 const BrowserThread::ID kExpectedClientThreadId = BrowserThread::IO; 18 const BrowserThread::ID kExpectedClientThreadId = BrowserThread::IO;
19 const char* kRefServerUrl1 = "https://test.domain.example/foo?id=bar.bar"; 19 const char* kRefServerUrl1 = "https://test.domain.example/foo?id=bar.bar";
20 const char* kRefServerUrl2 = "http://another.domain.example/foo?id=bar.bar#2"; 20 const char* kRefServerUrl2 = "http://another.domain.example/foo?id=bar.bar#2";
21 21
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 145
146 IN_PROC_BROWSER_TEST_F(GeolocationAccessTokenStoreTest, CancelRequest) { 146 IN_PROC_BROWSER_TEST_F(GeolocationAccessTokenStoreTest, CancelRequest) {
147 BrowserThread::PostTask( 147 BrowserThread::PostTask(
148 kExpectedClientThreadId, FROM_HERE, NewRunnableFunction( 148 kExpectedClientThreadId, FROM_HERE, NewRunnableFunction(
149 RunCancelTestInClientTread)); 149 RunCancelTestInClientTread));
150 ui_test_utils::RunMessageLoop(); 150 ui_test_utils::RunMessageLoop();
151 } 151 }
152 152
153 } // namespace 153 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698