| 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/policy/test/policy_test_utils.h" | 5 #include "chrome/browser/policy/test/policy_test_utils.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/policy/policy_bundle.h" | 15 #include "components/policy/core/common/policy_bundle.h" |
| 16 | 16 |
| 17 namespace policy { | 17 namespace policy { |
| 18 | 18 |
| 19 PolicyDetailsMap::PolicyDetailsMap() {} | 19 PolicyDetailsMap::PolicyDetailsMap() {} |
| 20 | 20 |
| 21 PolicyDetailsMap::~PolicyDetailsMap() {} | 21 PolicyDetailsMap::~PolicyDetailsMap() {} |
| 22 | 22 |
| 23 GetChromePolicyDetailsCallback PolicyDetailsMap::GetCallback() const { | 23 GetChromePolicyDetailsCallback PolicyDetailsMap::GetCallback() const { |
| 24 return base::Bind(&PolicyDetailsMap::Lookup, base::Unretained(this)); | 24 return base::Bind(&PolicyDetailsMap::Lookup, base::Unretained(this)); |
| 25 } | 25 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 << " \"scope\": " << e.scope << "," << std::endl | 130 << " \"scope\": " << e.scope << "," << std::endl |
| 131 << " \"value\": " << value | 131 << " \"value\": " << value |
| 132 << "}"; | 132 << "}"; |
| 133 return os; | 133 return os; |
| 134 } | 134 } |
| 135 | 135 |
| 136 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { | 136 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { |
| 137 os << ns.domain << "/" << ns.component_id; | 137 os << ns.domain << "/" << ns.component_id; |
| 138 return os; | 138 return os; |
| 139 } | 139 } |
| OLD | NEW |