OLD | NEW |
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 "content/public/browser/geolocation_provider.h" | 13 #include "content/public/browser/geolocation_provider.h" |
14 #include "content/public/common/geoposition.h" | 14 #include "content/public/common/geoposition.h" |
15 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 17 #include "third_party/WebKit/public/platform/WebRect.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebScreenInfo.h" | 18 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
20 | 20 |
21 namespace autofill { | 21 namespace autofill { |
22 namespace risk { | 22 namespace risk { |
23 | 23 |
24 const uint64 kObfuscatedGaiaId = GG_UINT64_C(16571487432910023183); | 24 const uint64 kObfuscatedGaiaId = GG_UINT64_C(16571487432910023183); |
25 const char kCharset[] = "UTF-8"; | 25 const char kCharset[] = "UTF-8"; |
26 const char kAcceptLanguages[] = "en-US,en"; | 26 const char kAcceptLanguages[] = "en-US,en"; |
27 const int kScreenColorDepth = 53; | 27 const int kScreenColorDepth = 53; |
28 | 28 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 DIALOG_TYPE_AUTOCHECKOUT, g_browser_process->GetApplicationLocale(), | 174 DIALOG_TYPE_AUTOCHECKOUT, g_browser_process->GetApplicationLocale(), |
175 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback, | 175 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback, |
176 base::Unretained(this))); | 176 base::Unretained(this))); |
177 | 177 |
178 // Wait for the callback to be called. | 178 // Wait for the callback to be called. |
179 message_loop_.Run(); | 179 message_loop_.Run(); |
180 } | 180 } |
181 | 181 |
182 } // namespace risk | 182 } // namespace risk |
183 } // namespace autofill | 183 } // namespace autofill |
OLD | NEW |