| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
| 12 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
| 13 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
| 14 #include "content/browser/tab_contents/tab_contents.h" | 14 #include "content/browser/tab_contents/tab_contents.h" |
| 15 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
| 16 #include "webkit/quota/quota_manager.h" | 16 #include "webkit/quota/quota_manager.h" |
| 17 | 17 |
| 18 using content::BrowserThread; |
| 18 using quota::QuotaManager; | 19 using quota::QuotaManager; |
| 19 | 20 |
| 20 // This browser test is aimed towards exercising the FileAPI bindings and | 21 // This browser test is aimed towards exercising the FileAPI bindings and |
| 21 // the actual implementation that lives in the browser side. | 22 // the actual implementation that lives in the browser side. |
| 22 class FileSystemBrowserTest : public InProcessBrowserTest { | 23 class FileSystemBrowserTest : public InProcessBrowserTest { |
| 23 public: | 24 public: |
| 24 FileSystemBrowserTest() { | 25 FileSystemBrowserTest() { |
| 25 EnableDOMAutomation(); | 26 EnableDOMAutomation(); |
| 26 } | 27 } |
| 27 | 28 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("request_test.html")))); | 86 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("request_test.html")))); |
| 86 } | 87 } |
| 87 | 88 |
| 88 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) { | 89 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) { |
| 89 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("create_test.html")))); | 90 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("create_test.html")))); |
| 90 } | 91 } |
| 91 | 92 |
| 92 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) { | 93 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) { |
| 93 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); | 94 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); |
| 94 } | 95 } |
| OLD | NEW |