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

Side by Side Diff: chrome/browser/policy/cloud/user_cloud_policy_manager_unittest.cc

Issue 78453005: Move PolicySchema and PolicySchemaRegistry to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested class on win Created 7 years, 1 month 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 | Annotate | Revision Log
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/policy/cloud/user_cloud_policy_manager.h" 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" 11 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h"
12 #include "chrome/browser/policy/cloud/mock_user_cloud_policy_store.h" 12 #include "chrome/browser/policy/cloud/mock_user_cloud_policy_store.h"
13 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 13 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
14 #include "chrome/browser/policy/schema_registry.h"
15 #include "components/policy/core/common/external_data_fetcher.h" 14 #include "components/policy/core/common/external_data_fetcher.h"
15 #include "components/policy/core/common/schema_registry.h"
16 #include "net/url_request/url_request_context_getter.h" 16 #include "net/url_request/url_request_context_getter.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace em = enterprise_management; 20 namespace em = enterprise_management;
21 21
22 using testing::AnyNumber; 22 using testing::AnyNumber;
23 using testing::AtLeast; 23 using testing::AtLeast;
24 using testing::Mock; 24 using testing::Mock;
25 using testing::_; 25 using testing::_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 store_->NotifyStoreLoaded(); 85 store_->NotifyStoreLoaded();
86 EXPECT_TRUE(expected_bundle_.Equals(manager_->policies())); 86 EXPECT_TRUE(expected_bundle_.Equals(manager_->policies()));
87 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); 87 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME));
88 EXPECT_CALL(*store_, Clear()); 88 EXPECT_CALL(*store_, Clear());
89 manager_->DisconnectAndRemovePolicy(); 89 manager_->DisconnectAndRemovePolicy();
90 EXPECT_FALSE(manager_->core()->service()); 90 EXPECT_FALSE(manager_->core()->service());
91 } 91 }
92 92
93 } // namespace 93 } // namespace
94 } // namespace policy 94 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698