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

Unified Diff: chrome/browser/autocomplete/network_action_predictor_unittest.cc

Issue 7833046: Changing confidence calculation to avoid div by zero (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaking math and unit test expectations Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/network_action_predictor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/network_action_predictor_unittest.cc
diff --git a/chrome/browser/autocomplete/network_action_predictor_unittest.cc b/chrome/browser/autocomplete/network_action_predictor_unittest.cc
index db95a6534870b04f469171adf84a3a1d531d6a26..b49bd92957a4514a8e1d3a80a43adb515220219b 100644
--- a/chrome/browser/autocomplete/network_action_predictor_unittest.cc
+++ b/chrome/browser/autocomplete/network_action_predictor_unittest.cc
@@ -47,11 +47,11 @@ TEST_F(NetworkActionPredictorTest, RecommendAction) {
{ GURL("http://www.testsite.com/b.html"),
ASCIIToUTF16("Test - site - just a test"), 0, 1,
ASCIIToUTF16("just"),
- NetworkActionPredictor::ACTION_NONE },
+ NetworkActionPredictor::ACTION_PRERENDER },
{ GURL("http://www.testsite.com/c.html"),
ASCIIToUTF16("Test - site - just a test"), 1, 5,
ASCIIToUTF16("just"),
- NetworkActionPredictor::ACTION_PRERENDER },
+ NetworkActionPredictor::ACTION_PRECONNECT },
{ GURL("http://www.testsite.com/d.html"),
ASCIIToUTF16("Test - site - just a test"), 2, 5,
ASCIIToUTF16("just"),
@@ -67,13 +67,13 @@ TEST_F(NetworkActionPredictorTest, RecommendAction) {
{ GURL("http://www.testsite.com/g.html"),
ASCIIToUTF16("Test - site - just a test"), 1, 12,
ASCIIToUTF16("just a"),
- NetworkActionPredictor::ACTION_PRECONNECT },
+ NetworkActionPredictor::ACTION_NONE },
{ GURL("http://www.testsite.com/h.html"),
- ASCIIToUTF16("Test - site - just a test"), 1, 21,
+ ASCIIToUTF16("Test - site - just a test"), 2, 21,
ASCIIToUTF16("just a test"),
- NetworkActionPredictor::ACTION_PRECONNECT },
+ NetworkActionPredictor::ACTION_NONE },
{ GURL("http://www.testsite.com/i.html"),
- ASCIIToUTF16("Test - site - just a test"), 1, 28,
+ ASCIIToUTF16("Test - site - just a test"), 3, 28,
ASCIIToUTF16("just a test"),
NetworkActionPredictor::ACTION_NONE }
};
« no previous file with comments | « chrome/browser/autocomplete/network_action_predictor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698