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

Unified Diff: net/disk_cache/simple/simple_version_upgrade_unittest.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_version_upgrade_unittest.cc
diff --git a/net/disk_cache/simple/simple_version_upgrade_unittest.cc b/net/disk_cache/simple/simple_version_upgrade_unittest.cc
index 15f4fa16ec8bde64217b2907a286f0e6ccf8c75b..e34a0655a06434c9e0ae2b71cf8843ae415fa6d4 100644
--- a/net/disk_cache/simple/simple_version_upgrade_unittest.cc
+++ b/net/disk_cache/simple/simple_version_upgrade_unittest.cc
@@ -38,9 +38,9 @@ bool WriteFakeIndexFileV5(const base::FilePath& cache_path) {
data.unused_must_be_zero1 = 0;
data.unused_must_be_zero2 = 0;
const base::FilePath file_name = cache_path.AppendASCII("index");
- return sizeof(data) ==
- base::WriteFile(
- file_name, reinterpret_cast<const char*>(&data), sizeof(data));
+ return sizeof(data) == base::WriteFile(file_name,
+ reinterpret_cast<const char*>(&data),
+ sizeof(data));
}
TEST(SimpleVersionUpgradeTest, FailsToMigrateBackwards) {
@@ -68,9 +68,9 @@ TEST(SimpleVersionUpgradeTest, FakeIndexVersionGetsUpdated) {
WriteFakeIndexFileV5(cache_path);
const std::string file_contents("incorrectly serialized data");
const base::FilePath index_file = cache_path.AppendASCII(kIndexFileName);
- ASSERT_EQ(implicit_cast<int>(file_contents.size()),
- base::WriteFile(
- index_file, file_contents.data(), file_contents.size()));
+ ASSERT_EQ(
+ implicit_cast<int>(file_contents.size()),
+ base::WriteFile(index_file, file_contents.data(), file_contents.size()));
// Upgrade.
ASSERT_TRUE(disk_cache::UpgradeSimpleCacheOnDisk(cache_path));
@@ -95,9 +95,9 @@ TEST(SimpleVersionUpgradeTest, UpgradeV5V6IndexMustDisappear) {
WriteFakeIndexFileV5(cache_path);
const std::string file_contents("incorrectly serialized data");
const base::FilePath index_file = cache_path.AppendASCII(kIndexFileName);
- ASSERT_EQ(implicit_cast<int>(file_contents.size()),
- base::WriteFile(
- index_file, file_contents.data(), file_contents.size()));
+ ASSERT_EQ(
+ implicit_cast<int>(file_contents.size()),
+ base::WriteFile(index_file, file_contents.data(), file_contents.size()));
// Create a few entry-like files.
const uint64 kEntries = 5;
@@ -110,8 +110,8 @@ TEST(SimpleVersionUpgradeTest, UpgradeV5V6IndexMustDisappear) {
base::StringPrintf(" %" PRIx64, implicit_cast<uint64>(entry_hash));
ASSERT_EQ(implicit_cast<int>(entry_contents.size()),
base::WriteFile(cache_path.AppendASCII(file_name),
- entry_contents.data(),
- entry_contents.size()));
+ entry_contents.data(),
+ entry_contents.size()));
}
}

Powered by Google App Engine
This is Rietveld 408576698