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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 23 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
24 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" 24 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "chrome/test/base/testing_profile.h" 26 #include "chrome/test/base/testing_profile.h"
27 #include "chromeos/chromeos_switches.h" 27 #include "chromeos/chromeos_switches.h"
28 #include "chromeos/login/user_names.h" 28 #include "chromeos/login/user_names.h"
29 #include "components/arc/arc_bridge_service.h" 29 #include "components/arc/arc_bridge_service.h"
30 #include "components/arc/test/fake_arc_bridge_service.h" 30 #include "components/arc/test/fake_arc_bridge_service.h"
31 #include "components/prefs/pref_service.h" 31 #include "components/prefs/pref_service.h"
32 #include "components/signin/core/account_id/account_id.h" 32 #include "components/signin/core/account_id/account_id.h"
33 #include "components/sync/api/fake_sync_change_processor.h"
34 #include "components/sync/api/sync_error_factory_mock.h"
33 #include "components/syncable_prefs/testing_pref_service_syncable.h" 35 #include "components/syncable_prefs/testing_pref_service_syncable.h"
34 #include "components/user_manager/user_manager.h" 36 #include "components/user_manager/user_manager.h"
35 #include "content/public/browser/browser_thread.h" 37 #include "content/public/browser/browser_thread.h"
36 #include "content/public/test/test_browser_thread_bundle.h" 38 #include "content/public/test/test_browser_thread_bundle.h"
37 #include "google_apis/gaia/gaia_constants.h" 39 #include "google_apis/gaia/gaia_constants.h"
38 #include "google_apis/gaia/gaia_urls.h" 40 #include "google_apis/gaia/gaia_urls.h"
39 #include "net/http/http_status_code.h" 41 #include "net/http/http_status_code.h"
40 #include "sync/api/fake_sync_change_processor.h"
41 #include "sync/api/sync_error_factory_mock.h"
42 #include "testing/gtest/include/gtest/gtest.h" 42 #include "testing/gtest/include/gtest/gtest.h"
43 43
44 namespace arc { 44 namespace arc {
45 45
46 namespace { 46 namespace {
47 47
48 const char kTestAuthCode[] = "4/Qa3CPIhh-WcMfWSf9HZaYcGUhEeax-F9sQK9CNRhZWs"; 48 const char kTestAuthCode[] = "4/Qa3CPIhh-WcMfWSf9HZaYcGUhEeax-F9sQK9CNRhZWs";
49 49
50 } // namespace 50 } // namespace
51 51
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true); 350 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true);
351 351
352 // Check that non-primary user can't use Arc. 352 // Check that non-primary user can't use Arc.
353 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get())); 353 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get()));
354 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get())); 354 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get()));
355 355
356 auth_service()->Shutdown(); 356 auth_service()->Shutdown();
357 } 357 }
358 358
359 } // namespace arc 359 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/supervised/supervised_user_creation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698