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

Side by Side Diff: content/browser/fileapi/file_system_browsertest.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 | 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_path.h" 7 #include "base/file_path.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/test/thread_test_helper.h" 9 #include "base/test/thread_test_helper.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 the_browser->web_contents(), 45 the_browser->web_contents(),
46 "window.domAutomationController.send(getLog())", 46 "window.domAutomationController.send(getLog())",
47 &js_result)); 47 &js_result));
48 FAIL() << "Failed: " << js_result; 48 FAIL() << "Failed: " << js_result;
49 } 49 }
50 } 50 }
51 }; 51 };
52 52
53 class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest { 53 class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest {
54 public: 54 public:
55 virtual void SetUpOnMainThread() { 55 virtual void SetUpOnMainThread() OVERRIDE {
56 const int kInitialQuotaKilobytes = 5000; 56 const int kInitialQuotaKilobytes = 5000;
57 const int kTemporaryStorageQuotaMaxSize = 57 const int kTemporaryStorageQuotaMaxSize =
58 kInitialQuotaKilobytes * 1024 * QuotaManager::kPerHostTemporaryPortion; 58 kInitialQuotaKilobytes * 1024 * QuotaManager::kPerHostTemporaryPortion;
59 SetTempQuota( 59 SetTempQuota(
60 kTemporaryStorageQuotaMaxSize, 60 kTemporaryStorageQuotaMaxSize,
61 BrowserContext::GetDefaultStoragePartition( 61 BrowserContext::GetDefaultStoragePartition(
62 shell()->web_contents()->GetBrowserContext())->GetQuotaManager()); 62 shell()->web_contents()->GetBrowserContext())->GetQuotaManager());
63 } 63 }
64 64
65 static void SetTempQuota(int64 bytes, scoped_refptr<QuotaManager> qm) { 65 static void SetTempQuota(int64 bytes, scoped_refptr<QuotaManager> qm) {
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSimpleTemporarySync) { 352 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSimpleTemporarySync) {
353 RunLayoutTest("workers/simple-temporary-sync.html"); 353 RunLayoutTest("workers/simple-temporary-sync.html");
354 } 354 }
355 355
356 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSyncOperations) { 356 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSyncOperations) {
357 RunLayoutTest("workers/sync-operations.html"); 357 RunLayoutTest("workers/sync-operations.html");
358 } 358 }
359 359
360 } // namespace content 360 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_package_browsertest.cc ('k') | content/browser/geolocation/device_data_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698