| 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_manager_base.h" | 5 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 16 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/test/test_simple_task_runner.h" | 18 #include "base/test/test_simple_task_runner.h" |
| 18 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 19 #include "base/values.h" | 20 #include "base/values.h" |
| 20 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" | 21 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" |
| 21 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 22 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
| 22 #include "components/policy/core/common/cloud/resource_cache.h" | 23 #include "components/policy/core/common/cloud/resource_cache.h" |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 crypto::SHA256HashString(k10ByteData))); | 762 crypto::SHA256HashString(k10ByteData))); |
| 762 cloud_policy_store_.NotifyStoreLoaded(); | 763 cloud_policy_store_.NotifyStoreLoaded(); |
| 763 base::RunLoop().RunUntilIdle(); | 764 base::RunLoop().RunUntilIdle(); |
| 764 EXPECT_EQ(1u, callback_data_.size()); | 765 EXPECT_EQ(1u, callback_data_.size()); |
| 765 ASSERT_TRUE(callback_data_[1]); | 766 ASSERT_TRUE(callback_data_[1]); |
| 766 EXPECT_EQ(k10ByteData, *callback_data_[1]); | 767 EXPECT_EQ(k10ByteData, *callback_data_[1]); |
| 767 ResetCallbackData(); | 768 ResetCallbackData(); |
| 768 } | 769 } |
| 769 | 770 |
| 770 } // namespace policy | 771 } // namespace policy |
| OLD | NEW |