Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: content/browser/download/file_metadata_unittest_linux.cc

Issue 84293002: LOG(INFO) -> VLOG(0) in content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 protected: 52 protected:
53 virtual void SetUp() OVERRIDE { 53 virtual void SetUp() OVERRIDE {
54 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 54 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
55 ASSERT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_.path(), 55 ASSERT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_.path(),
56 &test_file_)); 56 &test_file_));
57 int result = setxattr(test_file_.value().c_str(), 57 int result = setxattr(test_file_.value().c_str(),
58 "user.test", "test", 4, 0); 58 "user.test", "test", 4, 0);
59 is_xattr_supported_ = (!result) || (errno != ENOTSUP); 59 is_xattr_supported_ = (!result) || (errno != ENOTSUP);
60 if (!is_xattr_supported_) { 60 if (!is_xattr_supported_) {
61 LOG(INFO) << "Test will be skipped because extended attributes are not " 61 VLOG(0) << "Test will be skipped because extended attributes are not "
62 << "supported on this OS/file system."; 62 << "supported on this OS/file system.";
63 } 63 }
64 } 64 }
65 65
66 void CheckExtendedAttributeValue(const string attr_name, 66 void CheckExtendedAttributeValue(const string attr_name,
67 const string expected_value) const { 67 const string expected_value) const {
68 ssize_t len = getxattr(test_file().value().c_str(), attr_name.c_str(), 68 ssize_t len = getxattr(test_file().value().c_str(), attr_name.c_str(),
69 NULL, 0); 69 NULL, 0);
70 if (len <= static_cast<ssize_t>(0)) { 70 if (len <= static_cast<ssize_t>(0)) {
71 FAIL() << "Attribute '" << attr_name << "' does not exist"; 71 FAIL() << "Attribute '" << attr_name << "' does not exist";
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url); 155 AddOriginMetadataToFile(test_file(), invalid_url, invalid_url);
156 GetExtendedAttributeNames(&attr_names); 156 GetExtendedAttributeNames(&attr_names);
157 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), 157 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(),
158 kSourceURLAttrName)); 158 kSourceURLAttrName));
159 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(), 159 EXPECT_EQ(attr_names.end(), find(attr_names.begin(), attr_names.end(),
160 kReferrerURLAttrName)); 160 kReferrerURLAttrName));
161 } 161 }
162 162
163 } // namespace 163 } // namespace
164 } // namespace content 164 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/fileapi/file_system_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698