OLD | NEW |
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 "base/macros.h" |
5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
6 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" | 7 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" |
7 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 8 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
8 #include "chromeos/dbus/dbus_thread_manager.h" | 9 #include "chromeos/dbus/dbus_thread_manager.h" |
9 #include "chromeos/dbus/fake_session_manager_client.h" | 10 #include "chromeos/dbus/fake_session_manager_client.h" |
10 #include "chromeos/dbus/session_manager_client.h" | 11 #include "chromeos/dbus/session_manager_client.h" |
11 #include "components/user_manager/user.h" | 12 #include "components/user_manager/user.h" |
12 #include "components/user_manager/user_manager.h" | 13 #include "components/user_manager/user_manager.h" |
13 #include "content/public/test/test_utils.h" | 14 #include "content/public/test/test_utils.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 user_manager::UserManager::Get() | 85 user_manager::UserManager::Get() |
85 ->FindUser(AccountId::FromUserEmail(kAffiliatedUser)) | 86 ->FindUser(AccountId::FromUserEmail(kAffiliatedUser)) |
86 ->is_affiliated()); | 87 ->is_affiliated()); |
87 } | 88 } |
88 | 89 |
89 INSTANTIATE_TEST_CASE_P(AffiliationCheck, | 90 INSTANTIATE_TEST_CASE_P(AffiliationCheck, |
90 UserAffiliationBrowserTest, | 91 UserAffiliationBrowserTest, |
91 ::testing::Values(Params(true), Params(false))); | 92 ::testing::Values(Params(true), Params(false))); |
92 | 93 |
93 } // namespace policy | 94 } // namespace policy |
OLD | NEW |