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

Side by Side Diff: components/autofill/content/browser/risk/fingerprint_browsertest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h"
13 #include "build/build_config.h" 14 #include "build/build_config.h"
14 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" 15 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
15 #include "content/public/browser/gpu_data_manager.h" 16 #include "content/public/browser/gpu_data_manager.h"
16 #include "content/public/test/content_browser_test.h" 17 #include "content/public/test/content_browser_test.h"
17 #include "content/public/test/test_utils.h" 18 #include "content/public/test/test_utils.h"
18 #include "device/geolocation/geolocation_provider.h" 19 #include "device/geolocation/geolocation_provider.h"
19 #include "device/geolocation/geoposition.h" 20 #include "device/geolocation/geoposition.h"
20 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/WebKit/public/platform/WebRect.h" 23 #include "third_party/WebKit/public/platform/WebRect.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 205
205 internal::GetFingerprintInternal( 206 internal::GetFingerprintInternal(
206 kObfuscatedGaiaId, window_bounds_, content_bounds_, screen_info, 207 kObfuscatedGaiaId, window_bounds_, content_bounds_, screen_info,
207 "25.0.0.123", kCharset, kAcceptLanguages, base::Time::Now(), kLocale, 208 "25.0.0.123", kCharset, kAcceptLanguages, base::Time::Now(), kLocale,
208 kUserAgent, 209 kUserAgent,
209 base::TimeDelta::FromDays(1), // Ought to be longer than any test run. 210 base::TimeDelta::FromDays(1), // Ought to be longer than any test run.
210 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback, 211 base::Bind(&AutofillRiskFingerprintTest::GetFingerprintTestCallback,
211 base::Unretained(this))); 212 base::Unretained(this)));
212 213
213 // Wait for the callback to be called. 214 // Wait for the callback to be called.
214 message_loop_.Run(); 215 base::RunLoop().Run();
215 } 216 }
216 217
217 } // namespace risk 218 } // namespace risk
218 } // namespace autofill 219 } // namespace autofill
OLDNEW
« no previous file with comments | « components/arc/standalone/service_helper_unittest.cc ('k') | components/cronet/ios/cronet_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698