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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 748783003: Change VLOG to DVLOG Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | 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 <deque> 5 #include <deque>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 Profile* profile, 627 Profile* profile,
628 const GURL& url, 628 const GURL& url,
629 const content::Referrer& referrer, 629 const content::Referrer& referrer,
630 Origin origin, 630 Origin origin,
631 uint8 experiment_id) override { 631 uint8 experiment_id) override {
632 ExpectedContents expected; 632 ExpectedContents expected;
633 if (!expected_contents_queue_.empty()) { 633 if (!expected_contents_queue_.empty()) {
634 expected = expected_contents_queue_.front(); 634 expected = expected_contents_queue_.front();
635 expected_contents_queue_.pop_front(); 635 expected_contents_queue_.pop_front();
636 } 636 }
637 VLOG(1) << "Creating prerender contents for " << url.path() << 637 DVLOG(1) << "Creating prerender contents for " << url.path() <<
638 " with expected final status " << expected.final_status; 638 " with expected final status " << expected.final_status;
639 VLOG(1) << expected_contents_queue_.size() << " left in the queue."; 639 DVLOG(1) << expected_contents_queue_.size() << " left in the queue.";
640 TestPrerenderContents* contents = 640 TestPrerenderContents* contents =
641 new TestPrerenderContents(prerender_manager, 641 new TestPrerenderContents(prerender_manager,
642 profile, url, referrer, origin, 642 profile, url, referrer, origin,
643 expected.final_status); 643 expected.final_status);
644 if (expected.handle) 644 if (expected.handle)
645 expected.handle->OnPrerenderCreated(contents); 645 expected.handle->OnPrerenderCreated(contents);
646 return contents; 646 return contents;
647 } 647 }
648 648
649 private: 649 private:
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 if (https_src_server_) 1626 if (https_src_server_)
1627 src_server = https_src_server_.get(); 1627 src_server = https_src_server_.get();
1628 GURL loader_url = src_server->GetURL( 1628 GURL loader_url = src_server->GetURL(
1629 replacement_path + "&" + loader_query_); 1629 replacement_path + "&" + loader_query_);
1630 1630
1631 GURL::Replacements loader_replacements; 1631 GURL::Replacements loader_replacements;
1632 if (!loader_host_override_.empty()) 1632 if (!loader_host_override_.empty())
1633 loader_replacements.SetHostStr(loader_host_override_); 1633 loader_replacements.SetHostStr(loader_host_override_);
1634 loader_url = loader_url.ReplaceComponents(loader_replacements); 1634 loader_url = loader_url.ReplaceComponents(loader_replacements);
1635 1635
1636 VLOG(1) << "Running test with queue length " << 1636 DVLOG(1) << "Running test with queue length " <<
1637 expected_final_status_queue.size(); 1637 expected_final_status_queue.size();
1638 CHECK(!expected_final_status_queue.empty()); 1638 CHECK(!expected_final_status_queue.empty());
1639 ScopedVector<TestPrerender> prerenders; 1639 ScopedVector<TestPrerender> prerenders;
1640 for (size_t i = 0; i < expected_final_status_queue.size(); i++) { 1640 for (size_t i = 0; i < expected_final_status_queue.size(); i++) {
1641 prerenders.push_back( 1641 prerenders.push_back(
1642 prerender_contents_factory_->ExpectPrerenderContents( 1642 prerender_contents_factory_->ExpectPrerenderContents(
1643 expected_final_status_queue[i]).release()); 1643 expected_final_status_queue[i]).release());
1644 } 1644 }
1645 1645
1646 FinalStatus expected_final_status = expected_final_status_queue.front(); 1646 FinalStatus expected_final_status = expected_final_status_queue.front();
(...skipping 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after
4576 TestShouldDisableLocalPredictorPreferenceNetworkMatrix( 4576 TestShouldDisableLocalPredictorPreferenceNetworkMatrix(
4577 true /*preference_wifi_network_wifi*/, 4577 true /*preference_wifi_network_wifi*/,
4578 true /*preference_wifi_network_4g*/, 4578 true /*preference_wifi_network_4g*/,
4579 true /*preference_always_network_wifi*/, 4579 true /*preference_always_network_wifi*/,
4580 false /*preference_always_network_4g*/, 4580 false /*preference_always_network_4g*/,
4581 true /*preference_never_network_wifi*/, 4581 true /*preference_never_network_wifi*/,
4582 true /*preference_never_network_4g*/); 4582 true /*preference_never_network_4g*/);
4583 } 4583 }
4584 4584
4585 } // namespace prerender 4585 } // namespace prerender
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698