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

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

Issue 99333002: Revert of Move ConfigurationPolicyProvider, etc. to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_policy_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/cloud_external_data_policy_observer.h" 5 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/chromeos/policy/device_local_account.h" 23 #include "chrome/browser/chromeos/policy/device_local_account.h"
24 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana ger.h" 24 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana ger.h"
25 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" 25 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h"
26 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" 26 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
27 #include "chrome/browser/chromeos/settings/device_settings_service.h" 27 #include "chrome/browser/chromeos/settings/device_settings_service.h"
28 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" 28 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
29 #include "chrome/browser/policy/cloud/cloud_policy_core.h" 29 #include "chrome/browser/policy/cloud/cloud_policy_core.h"
30 #include "chrome/browser/policy/cloud/cloud_policy_store.h" 30 #include "chrome/browser/policy/cloud/cloud_policy_store.h"
31 #include "chrome/browser/policy/cloud/mock_cloud_external_data_manager.h" 31 #include "chrome/browser/policy/cloud/mock_cloud_external_data_manager.h"
32 #include "chrome/browser/policy/cloud/policy_builder.h" 32 #include "chrome/browser/policy/cloud/policy_builder.h"
33 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
33 #include "chrome/browser/policy/policy_service.h" 34 #include "chrome/browser/policy/policy_service.h"
34 #include "chrome/browser/policy/policy_service_impl.h" 35 #include "chrome/browser/policy/policy_service_impl.h"
35 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" 36 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
36 #include "chrome/browser/profiles/profile.h" 37 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/common/chrome_paths.h" 38 #include "chrome/common/chrome_paths.h"
38 #include "chrome/test/base/testing_profile.h" 39 #include "chrome/test/base/testing_profile.h"
39 #include "components/policy/core/common/external_data_fetcher.h" 40 #include "components/policy/core/common/external_data_fetcher.h"
40 #include "components/policy/core/common/mock_configuration_policy_provider.h"
41 #include "components/policy/core/common/policy_map.h" 41 #include "components/policy/core/common/policy_map.h"
42 #include "components/policy/core/common/policy_types.h" 42 #include "components/policy/core/common/policy_types.h"
43 #include "content/public/browser/notification_details.h" 43 #include "content/public/browser/notification_details.h"
44 #include "content/public/browser/notification_service.h" 44 #include "content/public/browser/notification_service.h"
45 #include "content/public/browser/notification_source.h" 45 #include "content/public/browser/notification_source.h"
46 #include "net/url_request/test_url_fetcher_factory.h" 46 #include "net/url_request/test_url_fetcher_factory.h"
47 #include "net/url_request/url_fetcher_delegate.h" 47 #include "net/url_request/url_fetcher_delegate.h"
48 #include "net/url_request/url_request_context_getter.h" 48 #include "net/url_request/url_request_context_getter.h"
49 #include "net/url_request/url_request_status.h" 49 #include "net/url_request/url_request_status.h"
50 #include "policy/policy_constants.h" 50 #include "policy/policy_constants.h"
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 941
942 EXPECT_TRUE(set_calls_.empty()); 942 EXPECT_TRUE(set_calls_.empty());
943 EXPECT_TRUE(cleared_calls_.empty()); 943 EXPECT_TRUE(cleared_calls_.empty());
944 ASSERT_EQ(1u, fetched_calls_.size()); 944 ASSERT_EQ(1u, fetched_calls_.size());
945 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); 945 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first);
946 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); 946 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second);
947 ClearObservations(); 947 ClearObservations();
948 } 948 }
949 949
950 } // namespace policy 950 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698