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

Side by Side Diff: chrome/browser/autofill/risk/fingerprint_browsertest.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "components/autofill/content/browser/risk/fingerprint.h" 5 #include "components/autofill/content/browser/risk/fingerprint.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/port.h" 9 #include "base/port.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 13 matching lines...) Expand all
24 namespace autofill { 24 namespace autofill {
25 namespace risk { 25 namespace risk {
26 26
27 namespace internal { 27 namespace internal {
28 28
29 // Defined in the implementation file corresponding to this test. 29 // Defined in the implementation file corresponding to this test.
30 void GetFingerprintInternal( 30 void GetFingerprintInternal(
31 uint64 obfuscated_gaia_id, 31 uint64 obfuscated_gaia_id,
32 const gfx::Rect& window_bounds, 32 const gfx::Rect& window_bounds,
33 const gfx::Rect& content_bounds, 33 const gfx::Rect& content_bounds,
34 const WebKit::WebScreenInfo& screen_info, 34 const blink::WebScreenInfo& screen_info,
35 const std::string& version, 35 const std::string& version,
36 const std::string& charset, 36 const std::string& charset,
37 const std::string& accept_languages, 37 const std::string& accept_languages,
38 const base::Time& install_time, 38 const base::Time& install_time,
39 const std::string& app_locale, 39 const std::string& app_locale,
40 const base::TimeDelta& timeout, 40 const base::TimeDelta& timeout,
41 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); 41 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
42 42
43 } // namespace internal 43 } // namespace internal
44 44
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 position.accuracy = kAccuracy; 178 position.accuracy = kAccuracy;
179 position.timestamp = 179 position.timestamp =
180 base::Time::UnixEpoch() + 180 base::Time::UnixEpoch() +
181 base::TimeDelta::FromMilliseconds(kGeolocationTime); 181 base::TimeDelta::FromMilliseconds(kGeolocationTime);
182 scoped_refptr<content::MessageLoopRunner> runner = 182 scoped_refptr<content::MessageLoopRunner> runner =
183 new content::MessageLoopRunner; 183 new content::MessageLoopRunner;
184 content::GeolocationProvider::OverrideLocationForTesting( 184 content::GeolocationProvider::OverrideLocationForTesting(
185 position, runner->QuitClosure()); 185 position, runner->QuitClosure());
186 runner->Run(); 186 runner->Run();
187 187
188 WebKit::WebScreenInfo screen_info; 188 blink::WebScreenInfo screen_info;
189 screen_info.depth = kScreenColorDepth; 189 screen_info.depth = kScreenColorDepth;
190 screen_info.rect = WebKit::WebRect(screen_bounds_); 190 screen_info.rect = blink::WebRect(screen_bounds_);
191 screen_info.availableRect = WebKit::WebRect(available_screen_bounds_); 191 screen_info.availableRect = blink::WebRect(available_screen_bounds_);
192 192
193 internal::GetFingerprintInternal( 193 internal::GetFingerprintInternal(
194 kObfuscatedGaiaId, window_bounds_, content_bounds_, screen_info, 194 kObfuscatedGaiaId, window_bounds_, content_bounds_, screen_info,
195 "25.0.0.123", kCharset, kAcceptLanguages, base::Time::Now(), 195 "25.0.0.123", kCharset, kAcceptLanguages, base::Time::Now(),
196 g_browser_process->GetApplicationLocale(), 196 g_browser_process->GetApplicationLocale(),
197 base::TimeDelta::FromDays(1), // Ought to be longer than any test run. 197 base::TimeDelta::FromDays(1), // Ought to be longer than any test run.
198 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback, 198 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback,
199 base::Unretained(this))); 199 base::Unretained(this)));
200 200
201 // Wait for the callback to be called. 201 // Wait for the callback to be called.
202 message_loop_.Run(); 202 message_loop_.Run();
203 } 203 }
204 204
205 } // namespace risk 205 } // namespace risk
206 } // namespace autofill 206 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_interactive_uitest.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698