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 "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/test/base/in_process_browser_test.h" | 7 #include "chrome/test/base/in_process_browser_test.h" |
8 #include "chrome/test/base/ui_test_utils.h" | 8 #include "chrome/test/base/ui_test_utils.h" |
9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/public/common/content_paths.h" | 10 #include "content/public/common/content_paths.h" |
11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
12 #include "webkit/dom_storage/dom_storage_types.h" | 12 #include "webkit/dom_storage/dom_storage_types.h" |
13 | 13 |
14 // This browser test is aimed towards exercising the DomStorage system | 14 // This browser test is aimed towards exercising the DomStorage system |
15 // from end-to-end. | 15 // from end-to-end. |
16 class DomStorageBrowserTest : public InProcessBrowserTest { | 16 class DomStorageBrowserTest : public InProcessBrowserTest { |
17 public: | 17 public: |
18 DomStorageBrowserTest() { | 18 DomStorageBrowserTest() { |
19 EnableDOMAutomation(); | 19 EnableDOMAutomation(); |
(...skipping 27 matching lines...) Expand all Loading... |
47 static const bool kIncognito = true; | 47 static const bool kIncognito = true; |
48 static const bool kNotIncognito = false; | 48 static const bool kNotIncognito = false; |
49 | 49 |
50 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheck) { | 50 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheck) { |
51 SimpleTest(GetTestURL("sanity_check.html"), kNotIncognito); | 51 SimpleTest(GetTestURL("sanity_check.html"), kNotIncognito); |
52 } | 52 } |
53 | 53 |
54 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheckIncognito) { | 54 IN_PROC_BROWSER_TEST_F(DomStorageBrowserTest, SanityCheckIncognito) { |
55 SimpleTest(GetTestURL("sanity_check.html"), kIncognito); | 55 SimpleTest(GetTestURL("sanity_check.html"), kIncognito); |
56 } | 56 } |
OLD | NEW |