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

Side by Side Diff: storage/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc

Issue 2775383003: Move some fileapi tests next to the files they cover. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "storage/browser/fileapi/sandbox_origin_database.h" 7 #include "storage/browser/fileapi/sandbox_origin_database.h"
8 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h" 8 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 EXPECT_TRUE(base::ReadFileToString( 207 EXPECT_TRUE(base::ReadFileToString(
208 dir_db_path.AppendASCII("dummy"), &origin_db_data)); 208 dir_db_path.AppendASCII("dummy"), &origin_db_data));
209 EXPECT_EQ(kFakeDirectoryData2, origin_db_data); 209 EXPECT_EQ(kFakeDirectoryData2, origin_db_data);
210 210
211 // After the migration the kOrigin1 directory database path must be gone. 211 // After the migration the kOrigin1 directory database path must be gone.
212 EXPECT_FALSE(base::PathExists(old_dir_db_path1)); 212 EXPECT_FALSE(base::PathExists(old_dir_db_path1));
213 EXPECT_TRUE(base::PathExists(old_dir_db_path2)); 213 EXPECT_TRUE(base::PathExists(old_dir_db_path2));
214 } 214 }
215 215
216 } // namespace content 216 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698