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/chromeos/policy/user_cloud_policy_store_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
16 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 16 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
17 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" | 17 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" |
18 #include "chrome/browser/policy/cloud/policy_builder.h" | 18 #include "chrome/browser/policy/cloud/policy_builder.h" |
19 #include "chrome/browser/policy/cloud/proto/device_management_local.pb.h" | 19 #include "chrome/browser/policy/proto/cloud/device_management_local.pb.h" |
20 #include "chromeos/dbus/mock_cryptohome_client.h" | 20 #include "chromeos/dbus/mock_cryptohome_client.h" |
21 #include "chromeos/dbus/mock_session_manager_client.h" | 21 #include "chromeos/dbus/mock_session_manager_client.h" |
22 #include "content/public/test/test_browser_thread.h" | 22 #include "content/public/test/test_browser_thread.h" |
23 #include "policy/policy_constants.h" | 23 #include "policy/policy_constants.h" |
24 #include "policy/proto/cloud_policy.pb.h" | 24 #include "policy/proto/cloud_policy.pb.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 namespace em = enterprise_management; | 28 namespace em = enterprise_management; |
29 | 29 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 PerformStorePolicy(&new_public_key, kDefaultHomepage, kNewHomepage)); | 503 PerformStorePolicy(&new_public_key, kDefaultHomepage, kNewHomepage)); |
504 VerifyPolicyMap(kNewHomepage); | 504 VerifyPolicyMap(kNewHomepage); |
505 | 505 |
506 // Verify that the legacy cache has been removed. | 506 // Verify that the legacy cache has been removed. |
507 EXPECT_FALSE(file_util::PathExists(policy_file())); | 507 EXPECT_FALSE(file_util::PathExists(policy_file())); |
508 } | 508 } |
509 | 509 |
510 } // namespace | 510 } // namespace |
511 | 511 |
512 } // namespace policy | 512 } // namespace policy |
OLD | NEW |