OLD | NEW |
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/predictors/autocomplete_action_predictor.h" | 5 #include "chrome/browser/predictors/autocomplete_action_predictor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/guid.h" | 11 #include "base/guid.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "base/time/time.h" | 17 #include "base/time/time.h" |
15 #include "chrome/browser/history/history_service_factory.h" | 18 #include "chrome/browser/history/history_service_factory.h" |
16 #include "chrome/browser/prerender/prerender_field_trial.h" | 19 #include "chrome/browser/prerender/prerender_field_trial.h" |
17 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
19 #include "components/history/core/browser/history_service.h" | 22 #include "components/history/core/browser/history_service.h" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 AutocompleteActionPredictor::ACTION_PRERENDER) ? | 379 AutocompleteActionPredictor::ACTION_PRERENDER) ? |
377 AutocompleteActionPredictor::ACTION_PRECONNECT : | 380 AutocompleteActionPredictor::ACTION_PRECONNECT : |
378 test_url_db[i].expected_action; | 381 test_url_db[i].expected_action; |
379 EXPECT_EQ(expected_action, | 382 EXPECT_EQ(expected_action, |
380 predictor()->RecommendAction(test_url_db[i].user_text, match)) | 383 predictor()->RecommendAction(test_url_db[i].user_text, match)) |
381 << "Unexpected action for " << match.destination_url; | 384 << "Unexpected action for " << match.destination_url; |
382 } | 385 } |
383 } | 386 } |
384 | 387 |
385 } // namespace predictors | 388 } // namespace predictors |
OLD | NEW |