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

Side by Side Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/webui/signin/signin_create_profile_handler.h" 5 #include "chrome/browser/ui/webui/signin/signin_create_profile_handler.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/prefs/browser_prefs.h" 8 #include "chrome/browser/prefs/browser_prefs.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_attributes_entry.h" 10 #include "chrome/browser/profiles/profile_attributes_entry.h"
11 #include "chrome/browser/profiles/profile_attributes_storage.h" 11 #include "chrome/browser/profiles/profile_attributes_storage.h"
12 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 12 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
13 #include "chrome/browser/signin/fake_signin_manager_builder.h" 13 #include "chrome/browser/signin/fake_signin_manager_builder.h"
14 #include "chrome/browser/signin/signin_error_controller_factory.h" 14 #include "chrome/browser/signin/signin_error_controller_factory.h"
15 #include "chrome/browser/signin/signin_manager_factory.h" 15 #include "chrome/browser/signin/signin_manager_factory.h"
16 #include "chrome/browser/ui/webui/signin/signin_utils.h" 16 #include "chrome/browser/ui/webui/signin/signin_utils.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
19 #include "chrome/test/base/browser_with_test_window_test.h" 19 #include "chrome/test/base/browser_with_test_window_test.h"
20 #include "chrome/test/base/testing_browser_process.h" 20 #include "chrome/test/base/testing_browser_process.h"
21 #include "chrome/test/base/testing_profile_manager.h" 21 #include "chrome/test/base/testing_profile_manager.h"
22 #include "components/signin/core/browser/fake_auth_status_provider.h" 22 #include "components/signin/core/browser/fake_auth_status_provider.h"
23 #include "components/sync/api/attachments/attachment_service_proxy_for_test.h" 23 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h"
24 #include "components/sync/api/fake_sync_change_processor.h" 24 #include "components/sync/model/fake_sync_change_processor.h"
25 #include "components/sync/api/sync_data.h" 25 #include "components/sync/model/sync_data.h"
26 #include "components/sync/api/sync_error_factory_mock.h" 26 #include "components/sync/model/sync_error_factory_mock.h"
27 #include "components/sync/protocol/sync.pb.h" 27 #include "components/sync/protocol/sync.pb.h"
28 #include "components/syncable_prefs/testing_pref_service_syncable.h" 28 #include "components/syncable_prefs/testing_pref_service_syncable.h"
29 #include "content/public/test/test_web_ui.h" 29 #include "content/public/test/test_web_ui.h"
30 #include "testing/gmock/include/gmock/gmock.h" 30 #include "testing/gmock/include/gmock/gmock.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 33
34 #if defined(ENABLE_SUPERVISED_USERS) 34 #if defined(ENABLE_SUPERVISED_USERS)
35 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" 35 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h"
36 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac tory.h" 36 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac tory.h"
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 EXPECT_EQ("create-profile-error", callback_name); 656 EXPECT_EQ("create-profile-error", callback_name);
657 657
658 base::string16 expected_error_message = l10n_util::GetStringUTF16( 658 base::string16 expected_error_message = l10n_util::GetStringUTF16(
659 IDS_PROFILES_CREATE_SUPERVISED_NOT_ALLOWED_BY_POLICY); 659 IDS_PROFILES_CREATE_SUPERVISED_NOT_ALLOWED_BY_POLICY);
660 base::string16 error_message; 660 base::string16 error_message;
661 ASSERT_TRUE(web_ui()->call_data()[0]->arg2()->GetAsString(&error_message)); 661 ASSERT_TRUE(web_ui()->call_data()[0]->arg2()->GetAsString(&error_message));
662 EXPECT_EQ(expected_error_message, error_message); 662 EXPECT_EQ(expected_error_message, error_message);
663 } 663 }
664 664
665 #endif 665 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698