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

Side by Side Diff: content/browser/webui/web_ui_browsertest.cc

Issue 2870203002: Implement chrome://view-http-cache with network service. (Closed)
Patch Set: fix memory leak Created 3 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/common/url_constants.h"
6 #include "content/public/test/browser_test_utils.h"
7 #include "content/public/test/content_browser_test.h"
8 #include "content/public/test/content_browser_test_utils.h"
9 #include "content/shell/browser/shell.h"
10 #include "net/test/embedded_test_server/embedded_test_server.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13 namespace content {
14
15 using WebUIBrowserTest = ContentBrowserTest;
16
17 IN_PROC_BROWSER_TEST_F(WebUIBrowserTest, ViewCache) {
18 ASSERT_TRUE(embedded_test_server()->Start());
19 NavigateToURL(shell(), embedded_test_server()->GetURL("/simple_page.html"));
20 int result = -1;
21 NavigateToURL(shell(), GURL(kChromeUINetworkViewCacheURL));
22 std::string script(
23 "document.documentElement.innerHTML.indexOf('simple_page.html')");
24 ASSERT_TRUE(ExecuteScriptAndExtractInt(
25 shell()->web_contents(), "domAutomationController.send(" + script + ")",
26 &result));
27 ASSERT_NE(-1, result);
28 }
29
30 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/view_http_cache_job_factory.cc ('k') | content/browser/webui/web_ui_url_loader_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698