| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "build/build_config.h" |
| 15 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base.h" | 16 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base.h" |
| 16 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" | 17 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u
til.h" |
| 17 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" | 18 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
| 18 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 19 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
| 19 #include "chrome/browser/policy/profile_policy_connector.h" | 20 #include "chrome/browser/policy/profile_policy_connector.h" |
| 20 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 21 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 21 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
| 23 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
| 24 #include "chrome/test/base/in_process_browser_test.h" | 25 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 &test::ExternalDataFetchCallback, | 93 &test::ExternalDataFetchCallback, |
| 93 &fetched_external_data, | 94 &fetched_external_data, |
| 94 run_loop.QuitClosure())); | 95 run_loop.QuitClosure())); |
| 95 run_loop.Run(); | 96 run_loop.Run(); |
| 96 | 97 |
| 97 ASSERT_TRUE(fetched_external_data); | 98 ASSERT_TRUE(fetched_external_data); |
| 98 EXPECT_EQ(external_data, *fetched_external_data); | 99 EXPECT_EQ(external_data, *fetched_external_data); |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace policy | 102 } // namespace policy |
| OLD | NEW |