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

Side by Side Diff: components/autofill/core/browser/autofill_metrics_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/browser/autofill_metrics.h" 5 #include "components/autofill/core/browser/autofill_metrics.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/prefs/pref_service.h"
14 #include "base/run_loop.h" 13 #include "base/run_loop.h"
15 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
16 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
17 #include "base/test/histogram_tester.h" 16 #include "base/test/histogram_tester.h"
18 #include "base/time/time.h" 17 #include "base/time/time.h"
19 #include "components/autofill/core/browser/autofill_external_delegate.h" 18 #include "components/autofill/core/browser/autofill_external_delegate.h"
20 #include "components/autofill/core/browser/autofill_manager.h" 19 #include "components/autofill/core/browser/autofill_manager.h"
21 #include "components/autofill/core/browser/autofill_test_utils.h" 20 #include "components/autofill/core/browser/autofill_test_utils.h"
22 #include "components/autofill/core/browser/payments/payments_client.h" 21 #include "components/autofill/core/browser/payments/payments_client.h"
23 #include "components/autofill/core/browser/personal_data_manager.h" 22 #include "components/autofill/core/browser/personal_data_manager.h"
24 #include "components/autofill/core/browser/test_autofill_client.h" 23 #include "components/autofill/core/browser/test_autofill_client.h"
25 #include "components/autofill/core/browser/test_autofill_driver.h" 24 #include "components/autofill/core/browser/test_autofill_driver.h"
26 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 25 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
27 #include "components/autofill/core/common/autofill_pref_names.h" 26 #include "components/autofill/core/common/autofill_pref_names.h"
28 #include "components/autofill/core/common/form_data.h" 27 #include "components/autofill/core/common/form_data.h"
29 #include "components/autofill/core/common/form_field_data.h" 28 #include "components/autofill/core/common/form_field_data.h"
29 #include "components/prefs/pref_service.h"
30 #include "components/rappor/test_rappor_service.h" 30 #include "components/rappor/test_rappor_service.h"
31 #include "components/signin/core/browser/account_tracker_service.h" 31 #include "components/signin/core/browser/account_tracker_service.h"
32 #include "components/signin/core/browser/fake_signin_manager.h" 32 #include "components/signin/core/browser/fake_signin_manager.h"
33 #include "components/signin/core/browser/test_signin_client.h" 33 #include "components/signin/core/browser/test_signin_client.h"
34 #include "components/signin/core/common/signin_pref_names.h" 34 #include "components/signin/core/common/signin_pref_names.h"
35 #include "components/webdata/common/web_data_results.h" 35 #include "components/webdata/common/web_data_results.h"
36 #include "testing/gmock/include/gmock/gmock.h" 36 #include "testing/gmock/include/gmock/gmock.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 #include "ui/gfx/geometry/rect.h" 38 #include "ui/gfx/geometry/rect.h"
39 #include "url/gurl.h" 39 #include "url/gurl.h"
(...skipping 3510 matching lines...) Expand 10 before | Expand all | Expand 10 after
3550 EXPECT_THAT( 3550 EXPECT_THAT(
3551 histogram_tester.GetAllSamples("Autofill.ServerResponseHasDataForForm"), 3551 histogram_tester.GetAllSamples("Autofill.ServerResponseHasDataForForm"),
3552 ElementsAre(Bucket(true, 2))); 3552 ElementsAre(Bucket(true, 2)));
3553 3553
3554 // No RAPPOR metrics are logged in the case there is at least some server data 3554 // No RAPPOR metrics are logged in the case there is at least some server data
3555 // available for all forms. 3555 // available for all forms.
3556 EXPECT_EQ(0, rappor_service_.GetReportsCount()); 3556 EXPECT_EQ(0, rappor_service_.GetReportsCount());
3557 } 3557 }
3558 3558
3559 } // namespace autofill 3559 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698