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

Side by Side Diff: content/browser/indexed_db/indexed_db_browsertest.cc

Issue 102873002: Move GetFileSize, NormalizeFilePath to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 336
337 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, LevelDBLogFileTest) { 337 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, LevelDBLogFileTest) {
338 // Any page that opens an IndexedDB will work here. 338 // Any page that opens an IndexedDB will work here.
339 SimpleTest(GetTestUrl("indexeddb", "database_test.html")); 339 SimpleTest(GetTestUrl("indexeddb", "database_test.html"));
340 base::FilePath leveldb_dir(FILE_PATH_LITERAL("file__0.indexeddb.leveldb")); 340 base::FilePath leveldb_dir(FILE_PATH_LITERAL("file__0.indexeddb.leveldb"));
341 base::FilePath log_file(FILE_PATH_LITERAL("LOG")); 341 base::FilePath log_file(FILE_PATH_LITERAL("LOG"));
342 base::FilePath log_file_path = 342 base::FilePath log_file_path =
343 GetContext()->data_path().Append(leveldb_dir).Append(log_file); 343 GetContext()->data_path().Append(leveldb_dir).Append(log_file);
344 int64 size; 344 int64 size;
345 EXPECT_TRUE(file_util::GetFileSize(log_file_path, &size)); 345 EXPECT_TRUE(base::GetFileSize(log_file_path, &size));
346 EXPECT_GT(size, 0); 346 EXPECT_GT(size, 0);
347 } 347 }
348 348
349 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CanDeleteWhenOverQuotaTest) { 349 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CanDeleteWhenOverQuotaTest) {
350 SimpleTest(GetTestUrl("indexeddb", "fill_up_5k.html")); 350 SimpleTest(GetTestUrl("indexeddb", "fill_up_5k.html"));
351 int64 size = RequestDiskUsage(); 351 int64 size = RequestDiskUsage();
352 const int kQuotaKilobytes = 2; 352 const int kQuotaKilobytes = 2;
353 EXPECT_GT(size, kQuotaKilobytes * 1024); 353 EXPECT_GT(size, kQuotaKilobytes * 1024);
354 SetQuota(kQuotaKilobytes); 354 SetQuota(kQuotaKilobytes);
355 SimpleTest(GetTestUrl("indexeddb", "delete_over_quota.html")); 355 SimpleTest(GetTestUrl("indexeddb", "delete_over_quota.html"));
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 command_line->AppendSwitch(switches::kSingleProcess); 432 command_line->AppendSwitch(switches::kSingleProcess);
433 } 433 }
434 }; 434 };
435 435
436 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, 436 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess,
437 RenderThreadShutdownTest) { 437 RenderThreadShutdownTest) {
438 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); 438 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html"));
439 } 439 }
440 440
441 } // namespace content 441 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/obfuscated_file_util_unittest.cc ('k') | content/browser/net/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698