| OLD | NEW |
| 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/path_service.h" | 5 #include "base/path_service.h" |
| 6 #include "content/browser/web_contents/web_contents_impl.h" | 6 #include "content/browser/web_contents/web_contents_impl.h" |
| 7 #include "content/public/common/content_paths.h" | 7 #include "content/public/common/content_paths.h" |
| 8 #include "content/public/test/browser_test_utils.h" | 8 #include "content/public/test/browser_test_utils.h" |
| 9 #include "content/shell/shell.h" | 9 #include "content/shell/shell.h" |
| 10 #include "content/test/content_browser_test.h" | 10 #include "content/test/content_browser_test.h" |
| 11 #include "content/test/content_browser_test_utils.h" | 11 #include "content/test/content_browser_test_utils.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 #include "webkit/dom_storage/dom_storage_types.h" | 13 #include "webkit/common/dom_storage/dom_storage_types.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 // This browser test is aimed towards exercising the DomStorage system | 17 // This browser test is aimed towards exercising the DomStorage system |
| 18 // from end-to-end. | 18 // from end-to-end. |
| 19 class DomStorageBrowserTest : public ContentBrowserTest { | 19 class DomStorageBrowserTest : public ContentBrowserTest { |
| 20 public: | 20 public: |
| 21 DomStorageBrowserTest() {} | 21 DomStorageBrowserTest() {} |
| 22 | 22 |
| 23 void SimpleTest(const GURL& test_url, bool incognito) { | 23 void SimpleTest(const GURL& test_url, bool incognito) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheck) { | 43 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheck) { |
| 44 SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kNotIncognito); | 44 SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kNotIncognito); |
| 45 } | 45 } |
| 46 | 46 |
| 47 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheckIncognito) { | 47 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheckIncognito) { |
| 48 SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kIncognito); | 48 SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kIncognito); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace content | 51 } // namespace content |
| OLD | NEW |