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

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2556803003: Allow temporary file system for incognito DevTools. (Closed)
Patch Set: Created 4 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
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 // Timing out on linux ARM bot: https://crbug/238453 1115 // Timing out on linux ARM bot: https://crbug/238453
1116 #define MAYBE_TestPauseWhenScriptIsRunning DISABLED_TestPauseWhenScriptIsRunning 1116 #define MAYBE_TestPauseWhenScriptIsRunning DISABLED_TestPauseWhenScriptIsRunning
1117 #else 1117 #else
1118 #define MAYBE_TestPauseWhenScriptIsRunning TestPauseWhenScriptIsRunning 1118 #define MAYBE_TestPauseWhenScriptIsRunning TestPauseWhenScriptIsRunning
1119 #endif 1119 #endif
1120 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, 1120 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest,
1121 MAYBE_TestPauseWhenScriptIsRunning) { 1121 MAYBE_TestPauseWhenScriptIsRunning) {
1122 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); 1122 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning);
1123 } 1123 }
1124 1124
1125 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestTempFileIncognito) {
1126 GURL url("about:blank");
1127 ui_test_utils::BrowserAddedObserver window_observer;
1128 chrome::NewEmptyWindow(browser()->profile()->GetOffTheRecordProfile());
1129 Browser* new_browser = window_observer.WaitForSingleNewBrowser();
1130 ui_test_utils::NavigateToURL(new_browser, url);
1131 DevToolsWindow* window = DevToolsWindowTesting::OpenDevToolsWindowSync(
1132 new_browser->tab_strip_model()->GetWebContentsAt(0), false);
1133 RunTestFunction(window, "testTempFile");
1134 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1135 }
1136
1137 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestTempFile) {
1138 RunTest("testTempFile", kDebuggerTestPage);
1139 }
1140
1125 // Tests network timing. 1141 // Tests network timing.
1126 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkTiming) { 1142 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkTiming) {
1127 RunTest("testNetworkTiming", kSlowTestPage); 1143 RunTest("testNetworkTiming", kSlowTestPage);
1128 } 1144 }
1129 1145
1130 // Tests network size. 1146 // Tests network size.
1131 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkSize) { 1147 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkSize) {
1132 RunTest("testNetworkSize", kChunkedTestPage); 1148 RunTest("testNetworkSize", kChunkedTestPage);
1133 } 1149 }
1134 1150
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 1564
1549 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 1565 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1550 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); 1566 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory);
1551 } 1567 }
1552 1568
1553 // Tests scripts panel showing. 1569 // Tests scripts panel showing.
1554 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) { 1570 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestDevToolsSharedWorker) {
1555 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL); 1571 RunTest("testDevToolsSharedWorker", url::kAboutBlankURL);
1556 } 1572 }
1557 1573
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/devtools_ui.cc » ('j') | chrome/browser/ui/webui/devtools_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698