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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 3 months 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 (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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
21 #include "base/threading/thread_task_runner_handle.h" 21 #include "base/threading/thread_task_runner_handle.h"
22 #include "chromeos/dbus/mock_cryptohome_client.h" 22 #include "chromeos/dbus/mock_cryptohome_client.h"
23 #include "chromeos/dbus/mock_session_manager_client.h" 23 #include "chromeos/dbus/mock_session_manager_client.h"
24 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 24 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
25 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" 25 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
26 #include "components/policy/core/common/cloud/policy_builder.h" 26 #include "components/policy/core/common/cloud/policy_builder.h"
27 #include "components/policy/core/common/policy_types.h" 27 #include "components/policy/core/common/policy_types.h"
28 #include "policy/policy_constants.h" 28 #include "components/policy/policy_constants.h"
29 #include "policy/proto/cloud_policy.pb.h" 29 #include "components/policy/proto/cloud_policy.pb.h"
30 #include "policy/proto/device_management_local.pb.h" 30 #include "components/policy/proto/device_management_local.pb.h"
31 #include "testing/gmock/include/gmock/gmock.h" 31 #include "testing/gmock/include/gmock/gmock.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 namespace em = enterprise_management; 34 namespace em = enterprise_management;
35 35
36 using testing::AllOf; 36 using testing::AllOf;
37 using testing::AnyNumber; 37 using testing::AnyNumber;
38 using testing::Eq; 38 using testing::Eq;
39 using testing::Mock; 39 using testing::Mock;
40 using testing::Property; 40 using testing::Property;
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 Mock::VerifyAndClearExpectations(&cryptohome_client_); 666 Mock::VerifyAndClearExpectations(&cryptohome_client_);
667 667
668 EXPECT_FALSE(store_->policy()); 668 EXPECT_FALSE(store_->policy());
669 EXPECT_TRUE(store_->policy_map().empty()); 669 EXPECT_TRUE(store_->policy_map().empty());
670 EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status()); 670 EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status());
671 } 671 }
672 672
673 } // namespace 673 } // namespace
674 674
675 } // namespace policy 675 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698