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

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

Issue 14904002: Load and send Wallet Risk params after user has agreed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 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 #include "components/autofill/browser/risk/fingerprint.h" 5 #include "components/autofill/browser/risk/fingerprint.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/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"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "components/autofill/browser/risk/proto/fingerprint.pb.h" 12 #include "components/autofill/browser/risk/proto/fingerprint.pb.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebScreenInfo.h" 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebScreenInfo.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 namespace autofill { 18 namespace autofill {
19 namespace risk { 19 namespace risk {
20 20
21 const int64 kGaiaId = GG_INT64_C(99194853094755497); 21 const uint64 kGaiaId = GG_UINT64_C(99194853094755497);
Ilya Sherman 2013/05/03 07:38:31 Could you update this constant so that it's outsid
Dan Beam 2013/05/03 23:02:40 Done.
22 const char kCharset[] = "UTF-8"; 22 const char kCharset[] = "UTF-8";
23 const char kAcceptLanguages[] = "en-US,en"; 23 const char kAcceptLanguages[] = "en-US,en";
24 const int kScreenColorDepth = 53; 24 const int kScreenColorDepth = 53;
25 25
26 class AutofillRiskFingerprintTest : public InProcessBrowserTest { 26 class AutofillRiskFingerprintTest : public InProcessBrowserTest {
27 public: 27 public:
28 AutofillRiskFingerprintTest() 28 AutofillRiskFingerprintTest()
29 : kWindowBounds(2, 3, 5, 7), 29 : kWindowBounds(2, 3, 5, 7),
30 kContentBounds(11, 13, 17, 37), 30 kContentBounds(11, 13, 17, 37),
31 kScreenBounds(0, 0, 101, 71), 31 kScreenBounds(0, 0, 101, 71),
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 g_browser_process->GetApplicationLocale(), 134 g_browser_process->GetApplicationLocale(),
135 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback, 135 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback,
136 base::Unretained(this))); 136 base::Unretained(this)));
137 137
138 // Wait for the callback to be called. 138 // Wait for the callback to be called.
139 message_loop_.Run(); 139 message_loop_.Run();
140 } 140 }
141 141
142 } // namespace risk 142 } // namespace risk
143 } // namespace autofill 143 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698