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

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

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 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) 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 "chrome/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 "chrome/browser/chrome_thread.h" 8 #include "chrome/browser/chrome_thread.h"
8 #include "chrome/test/in_process_browser_test.h" 9 #include "chrome/test/in_process_browser_test.h"
9 #include "chrome/test/ui_test_utils.h" 10 #include "chrome/test/ui_test_utils.h"
10 11
11 namespace { 12 namespace {
12 // The token store factory implementation expects to be used from any well-known 13 // The token store factory implementation expects to be used from any well-known
13 // chrome thread other than UI. We could use any arbitrary thread; IO is 14 // chrome thread other than UI. We could use any arbitrary thread; IO is
14 // a good choice as this is the expected usage. 15 // a good choice as this is the expected usage.
15 const ChromeThread::ID kExpectedClientThreadId = ChromeThread::IO; 16 const ChromeThread::ID kExpectedClientThreadId = ChromeThread::IO;
16 const char* kRefServerUrl1 = "https://test.domain.example/foo?id=bar.bar"; 17 const char* kRefServerUrl1 = "https://test.domain.example/foo?id=bar.bar";
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 DoTestStepAndWaitForResults(kRefServerUrl2, &ref_token2, NULL); 141 DoTestStepAndWaitForResults(kRefServerUrl2, &ref_token2, NULL);
141 DoTestStepAndWaitForResults(kRefServerUrl1, &ref_token1, NULL); 142 DoTestStepAndWaitForResults(kRefServerUrl1, &ref_token1, NULL);
142 } 143 }
143 144
144 IN_PROC_BROWSER_TEST_F(GeolocationAccessTokenStoreTest, CancelRequest) { 145 IN_PROC_BROWSER_TEST_F(GeolocationAccessTokenStoreTest, CancelRequest) {
145 ChromeThread::PostTask( 146 ChromeThread::PostTask(
146 kExpectedClientThreadId, FROM_HERE, NewRunnableFunction( 147 kExpectedClientThreadId, FROM_HERE, NewRunnableFunction(
147 RunCancelTestInClientTread)); 148 RunCancelTestInClientTread));
148 ui_test_utils::RunMessageLoop(); 149 ui_test_utils::RunMessageLoop();
149 } 150 }
OLDNEW
« no previous file with comments | « chrome/browser/find_bar_host_browsertest.cc ('k') | chrome/browser/geolocation/geolocation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698