OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/policy/component_cloud_policy_updater.h" | 5 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/sha1.h" | 13 #include "base/sha1.h" |
14 #include "base/test/test_pending_task.h" | 14 #include "base/test/test_pending_task.h" |
15 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "chrome/browser/policy/cloud_policy_constants.h" | 17 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
18 #include "chrome/browser/policy/component_cloud_policy_store.h" | 18 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" |
19 #include "chrome/browser/policy/policy_builder.h" | 19 #include "chrome/browser/policy/cloud/policy_builder.h" |
| 20 #include "chrome/browser/policy/cloud/resource_cache.h" |
20 #include "chrome/browser/policy/proto/chrome_extension_policy.pb.h" | 21 #include "chrome/browser/policy/proto/chrome_extension_policy.pb.h" |
21 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 22 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
22 #include "chrome/browser/policy/resource_cache.h" | |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "net/url_request/test_url_fetcher_factory.h" | 24 #include "net/url_request/test_url_fetcher_factory.h" |
25 #include "net/url_request/url_fetcher_delegate.h" | 25 #include "net/url_request/url_fetcher_delegate.h" |
26 #include "net/url_request/url_request_context_getter.h" | 26 #include "net/url_request/url_request_context_getter.h" |
27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 namespace em = enterprise_management; | 30 namespace em = enterprise_management; |
31 | 31 |
32 using testing::Mock; | 32 using testing::Mock; |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // data does not have a download url. | 438 // data does not have a download url. |
439 builder_.payload().Clear(); | 439 builder_.payload().Clear(); |
440 updater_->UpdateExternalPolicy(CreateResponse()); | 440 updater_->UpdateExternalPolicy(CreateResponse()); |
441 | 441 |
442 // The download has been cancelled. | 442 // The download has been cancelled. |
443 fetcher = GetCurrentFetcher(); | 443 fetcher = GetCurrentFetcher(); |
444 ASSERT_FALSE(fetcher); | 444 ASSERT_FALSE(fetcher); |
445 } | 445 } |
446 | 446 |
447 } // namespace policy | 447 } // namespace policy |
OLD | NEW |