| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <errno.h> | 5 #include <errno.h> |
| 6 #include <stddef.h> |
| 6 #include <sys/types.h> | 7 #include <sys/types.h> |
| 7 #include <sys/xattr.h> | 8 #include <sys/xattr.h> |
| 8 | 9 |
| 9 #include <algorithm> | 10 #include <algorithm> |
| 10 #include <sstream> | 11 #include <sstream> |
| 11 #include <string> | 12 #include <string> |
| 12 | 13 |
| 13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 15 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url); | 156 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url); |
| 156 GetExtendedAttributeNames(&attr_names); | 157 GetExtendedAttributeNames(&attr_names); |
| 157 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), | 158 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), |
| 158 kSourceURLAttrName)); | 159 kSourceURLAttrName)); |
| 159 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), | 160 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), |
| 160 kReferrerURLAttrName)); | 161 kReferrerURLAttrName)); |
| 161 } | 162 } |
| 162 | 163 |
| 163 } // namespace | 164 } // namespace |
| 164 } // namespace content | 165 } // namespace content |
| OLD | NEW |