OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/test/mock_entropy_provider.h" | 9 #include "base/test/mock_entropy_provider.h" |
10 #include "chrome/browser/sync/profile_sync_service_factory.h" | 10 #include "chrome/browser/sync/profile_sync_service_factory.h" |
11 #include "chrome/browser/sync/profile_sync_test_util.h" | 11 #include "chrome/browser/sync/profile_sync_test_util.h" |
12 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
14 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/profile_sync_service.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/gfx/range/range.h" | 18 #include "ui/gfx/range/range.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 EnforcePasswordManagerSettingMigrationExperiment( | 162 EnforcePasswordManagerSettingMigrationExperiment( |
163 test_case.settings_migration_experiment_group); | 163 test_case.settings_migration_experiment_group); |
164 EnforcePasswordManagerSettingsBehaviourChangeExperiment( | 164 EnforcePasswordManagerSettingsBehaviourChangeExperiment( |
165 test_case.settings_behaviour_change_experiment_group); | 165 test_case.settings_behaviour_change_experiment_group); |
166 EXPECT_EQ( | 166 EXPECT_EQ( |
167 l10n_util::GetStringUTF16(test_case.expected_setting_description_id), | 167 l10n_util::GetStringUTF16(test_case.expected_setting_description_id), |
168 l10n_util::GetStringUTF16( | 168 l10n_util::GetStringUTF16( |
169 GetPasswordManagerSettingsStringId(sync_service))); | 169 GetPasswordManagerSettingsStringId(sync_service))); |
170 } | 170 } |
171 } | 171 } |
OLD | NEW |