OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/policy/user_cloud_policy_store_chromeos.h" | 5 #include "chrome/browser/policy/user_cloud_policy_store_chromeos.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
11 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 11 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
12 #include "chrome/browser/policy/cloud_policy_constants.h" | 12 #include "chrome/browser/policy/cloud_policy_constants.h" |
13 #include "chrome/browser/policy/proto/cloud_policy.pb.h" | 13 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
14 #include "chrome/browser/policy/proto/device_management_local.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_local.pb.h" |
15 #include "chromeos/dbus/mock_session_manager_client.h" | 15 #include "chromeos/dbus/mock_session_manager_client.h" |
16 #include "content/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
17 #include "policy/policy_constants.h" | 17 #include "policy/policy_constants.h" |
18 | 18 |
19 namespace em = enterprise_management; | 19 namespace em = enterprise_management; |
20 | 20 |
21 using testing::AllOf; | 21 using testing::AllOf; |
22 using testing::Eq; | 22 using testing::Eq; |
23 using testing::Property; | 23 using testing::Property; |
24 using testing::Return; | 24 using testing::Return; |
25 using testing::SaveArg; | 25 using testing::SaveArg; |
26 using testing::_; | 26 using testing::_; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 } | 507 } |
508 | 508 |
509 INSTANTIATE_TEST_CASE_P( | 509 INSTANTIATE_TEST_CASE_P( |
510 UserCloudPolicyStoreChromeOSPolicyErrorTest, | 510 UserCloudPolicyStoreChromeOSPolicyErrorTest, |
511 UserCloudPolicyStoreChromeOSPolicyErrorTest, | 511 UserCloudPolicyStoreChromeOSPolicyErrorTest, |
512 testing::ValuesIn(kPolicyErrorTestCases)); | 512 testing::ValuesIn(kPolicyErrorTestCases)); |
513 | 513 |
514 } // namespace | 514 } // namespace |
515 | 515 |
516 } // namespace policy | 516 } // namespace policy |
OLD | NEW |