| OLD | NEW |
| 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/chrome_notification_types.h" | 20 #include "chrome/browser/chrome_notification_types.h" |
| 21 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" | 21 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" |
| 22 #include "chrome/browser/chromeos/policy/device_local_account.h" | 22 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 23 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" | 23 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" |
| 24 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" | 24 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
| 25 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 25 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
| 26 #include "chrome/browser/chromeos/policy/fake_affiliated_invalidation_service_pr
ovider.h" | 26 #include "chrome/browser/chromeos/policy/fake_affiliated_invalidation_service_pr
ovider.h" |
| 27 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 27 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
| 28 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 28 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 | 949 |
| 950 EXPECT_TRUE(set_calls_.empty()); | 950 EXPECT_TRUE(set_calls_.empty()); |
| 951 EXPECT_TRUE(cleared_calls_.empty()); | 951 EXPECT_TRUE(cleared_calls_.empty()); |
| 952 ASSERT_EQ(1u, fetched_calls_.size()); | 952 ASSERT_EQ(1u, fetched_calls_.size()); |
| 953 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); | 953 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); |
| 954 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); | 954 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); |
| 955 ClearObservations(); | 955 ClearObservations(); |
| 956 } | 956 } |
| 957 | 957 |
| 958 } // namespace policy | 958 } // namespace policy |
| OLD | NEW |