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

Side by Side Diff: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix component linkage Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/net_internals/sdch_view.js ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h" 5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 replacement_text, 343 replacement_text,
344 &replacement_path)); 344 &replacement_path));
345 GURL url_loader = test_server()->GetURL(replacement_path); 345 GURL url_loader = test_server()->GetURL(replacement_path);
346 return url_loader; 346 return url_loader;
347 } 347 }
348 348
349 bool NetInternalsTest::StartTestServer() { 349 bool NetInternalsTest::StartTestServer() {
350 if (test_server_started_) 350 if (test_server_started_)
351 return true; 351 return true;
352 test_server_started_ = test_server()->Start(); 352 test_server_started_ = test_server()->Start();
353
354 // Sample domain for SDCH-view test. Dictionaries for localhost/127.0.0.1
355 // are forbidden.
356 host_resolver()->AddRule("testdomain.com", "127.0.0.1");
357 host_resolver()->AddRule("sub.testdomain.com", "127.0.0.1");
353 return test_server_started_; 358 return test_server_started_;
354 } 359 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/sdch_view.js ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698