OLD | NEW |
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 <tuple> | 7 #include <tuple> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void StartUserAdding(const base::Closure& completion_callback) override {} | 103 void StartUserAdding(const base::Closure& completion_callback) override {} |
104 void CancelUserAdding() override {} | 104 void CancelUserAdding() override {} |
105 void StartSignInScreen(const chromeos::LoginScreenContext& context) override { | 105 void StartSignInScreen(const chromeos::LoginScreenContext& context) override { |
106 } | 106 } |
107 void OnPreferencesChanged() override {} | 107 void OnPreferencesChanged() override {} |
108 void PrewarmAuthentication() override {} | 108 void PrewarmAuthentication() override {} |
109 void StartAppLaunch(const std::string& app_id, | 109 void StartAppLaunch(const std::string& app_id, |
110 bool diagnostic_mode, | 110 bool diagnostic_mode, |
111 bool is_auto_launch) override {} | 111 bool is_auto_launch) override {} |
112 void StartDemoAppLaunch() override {} | 112 void StartDemoAppLaunch() override {} |
113 void StartArcKiosk(const AccountId& account_id) override {} | 113 void StartArcKiosk(const AccountId& account_id, |
| 114 bool is_auto_launch) override {} |
114 | 115 |
115 private: | 116 private: |
116 DISALLOW_COPY_AND_ASSIGN(FakeLoginDisplayHost); | 117 DISALLOW_COPY_AND_ASSIGN(FakeLoginDisplayHost); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace | 120 } // namespace |
120 | 121 |
121 class ArcSessionManagerTestBase : public testing::Test { | 122 class ArcSessionManagerTestBase : public testing::Test { |
122 public: | 123 public: |
123 ArcSessionManagerTestBase() | 124 ArcSessionManagerTestBase() |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // ArcPlayStoreEnabledPreferenceHandler is not running, so the state should | 759 // ArcPlayStoreEnabledPreferenceHandler is not running, so the state should |
759 // be kept as is. | 760 // be kept as is. |
760 EXPECT_EQ(ArcSessionManager::State::NEGOTIATING_TERMS_OF_SERVICE, | 761 EXPECT_EQ(ArcSessionManager::State::NEGOTIATING_TERMS_OF_SERVICE, |
761 arc_session_manager()->state()); | 762 arc_session_manager()->state()); |
762 // Managed user's preference should not be overwritten. | 763 // Managed user's preference should not be overwritten. |
763 if (!IsManagedUser()) | 764 if (!IsManagedUser()) |
764 EXPECT_FALSE(IsArcPlayStoreEnabledForProfile(profile())); | 765 EXPECT_FALSE(IsArcPlayStoreEnabledForProfile(profile())); |
765 } | 766 } |
766 | 767 |
767 } // namespace arc | 768 } // namespace arc |
OLD | NEW |