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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_view_utils_desktop_unittest.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 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.h"
11 #include "chrome/browser/sync/profile_sync_service_factory.h" 10 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/sync/profile_sync_service_mock.h" 11 #include "chrome/browser/sync/profile_sync_service_mock.h"
13 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
14 #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"
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698