| 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/variations/service/variations_service.h" | 5 #include "components/variations/service/variations_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/base64.h" | 11 #include "base/base64.h" |
| 10 #include "base/feature_list.h" | 12 #include "base/feature_list.h" |
| 11 #include "base/json/json_string_value_serializer.h" | 13 #include "base/json/json_string_value_serializer.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 13 #include "base/prefs/testing_pref_service.h" | 16 #include "base/prefs/testing_pref_service.h" |
| 14 #include "base/sha1.h" | 17 #include "base/sha1.h" |
| 15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 18 #include "base/test/histogram_tester.h" | 21 #include "base/test/histogram_tester.h" |
| 19 #include "base/version.h" | 22 #include "base/version.h" |
| 20 #include "components/variations/pref_names.h" | 23 #include "components/variations/pref_names.h" |
| 21 #include "components/variations/proto/study.pb.h" | 24 #include "components/variations/proto/study.pb.h" |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 << test.pref_value_before << ", " << test.version << ", " | 719 << test.pref_value_before << ", " << test.version << ", " |
| 717 << test.latest_country_code; | 720 << test.latest_country_code; |
| 718 | 721 |
| 719 histogram_tester.ExpectUniqueSample( | 722 histogram_tester.ExpectUniqueSample( |
| 720 "Variations.LoadPermanentConsistencyCountryResult", | 723 "Variations.LoadPermanentConsistencyCountryResult", |
| 721 test.expected_result, 1); | 724 test.expected_result, 1); |
| 722 } | 725 } |
| 723 } | 726 } |
| 724 | 727 |
| 725 } // namespace variations | 728 } // namespace variations |
| OLD | NEW |