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 <sys/types.h> | 6 #include <sys/types.h> |
7 #include <sys/xattr.h> | 7 #include <sys/xattr.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <sstream> | 10 #include <sstream> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/file_util.h" | |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/files/scoped_temp_dir.h" | 15 #include "base/files/scoped_temp_dir.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "content/browser/download/file_metadata_linux.h" | 18 #include "content/browser/download/file_metadata_linux.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url); | 154 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url); |
155 GetExtendedAttributeNames(&attr_names); | 155 GetExtendedAttributeNames(&attr_names); |
156 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), | 156 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), |
157 kSourceURLAttrName)); | 157 kSourceURLAttrName)); |
158 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(), |
159 kReferrerURLAttrName)); | 159 kReferrerURLAttrName)); |
160 } | 160 } |
161 | 161 |
162 } // namespace | 162 } // namespace |
163 } // namespace content | 163 } // namespace content |
OLD | NEW |