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

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

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 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 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 14 matching lines...) Expand all
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/dbus/dbus_thread_manager.h" 28 #include "chromeos/dbus/dbus_thread_manager.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/model/fake_sync_change_processor.h" 33 #include "components/sync/model/fake_sync_change_processor.h"
34 #include "components/sync/model/sync_error_factory_mock.h" 34 #include "components/sync/model/sync_error_factory_mock.h"
35 #include "components/syncable_prefs/testing_pref_service_syncable.h" 35 #include "components/sync_preferences/testing_pref_service_syncable.h"
36 #include "components/user_manager/user_manager.h" 36 #include "components/user_manager/user_manager.h"
37 #include "components/user_manager/user_names.h" 37 #include "components/user_manager/user_names.h"
38 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
39 #include "content/public/test/test_browser_thread_bundle.h" 39 #include "content/public/test/test_browser_thread_bundle.h"
40 #include "google_apis/gaia/gaia_constants.h" 40 #include "google_apis/gaia/gaia_constants.h"
41 #include "google_apis/gaia/gaia_urls.h" 41 #include "google_apis/gaia/gaia_urls.h"
42 #include "net/http/http_status_code.h" 42 #include "net/http/http_status_code.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
44 44
45 namespace arc { 45 namespace arc {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true); 359 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true);
360 360
361 // Check that non-primary user can't use Arc. 361 // Check that non-primary user can't use Arc.
362 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get())); 362 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get()));
363 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get())); 363 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get()));
364 364
365 auth_service()->Shutdown(); 365 auth_service()->Shutdown();
366 } 366 }
367 367
368 } // namespace arc 368 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698