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/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/path_service.h" | 15 #include "base/path_service.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
17 #include "base/values.h" | 18 #include "base/values.h" |
18 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
19 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" | 20 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" |
20 #include "chrome/browser/chromeos/policy/device_local_account.h" | 21 #include "chrome/browser/chromeos/policy/device_local_account.h" |
21 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" | 22 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana
ger.h" |
22 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" | 23 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 951 |
951 EXPECT_TRUE(set_calls_.empty()); | 952 EXPECT_TRUE(set_calls_.empty()); |
952 EXPECT_TRUE(cleared_calls_.empty()); | 953 EXPECT_TRUE(cleared_calls_.empty()); |
953 ASSERT_EQ(1u, fetched_calls_.size()); | 954 ASSERT_EQ(1u, fetched_calls_.size()); |
954 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); | 955 EXPECT_EQ(kRegularUserID, fetched_calls_.front().first); |
955 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); | 956 EXPECT_EQ(avatar_policy_2_data_, fetched_calls_.front().second); |
956 ClearObservations(); | 957 ClearObservations(); |
957 } | 958 } |
958 | 959 |
959 } // namespace policy | 960 } // namespace policy |
OLD | NEW |