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

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: Declare SdchProblemCode 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
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. Dictionarties for localhost/127.0.0.1
Randy Smith (Not in Mondays) 2014/10/29 16:15:45 nit: Dictionaries.
baranovich 2014/10/29 18:28:43 Done.
355 // are forbidden.
356 host_resolver()->AddRule("testdomain.com", "127.0.0.1");
353 return test_server_started_; 357 return test_server_started_;
354 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698