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 "components/omnibox/browser/autocomplete_provider.h" | 5 #include "components/omnibox/browser/autocomplete_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
12 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
17 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
18 #include "components/metrics/proto/omnibox_event.pb.h" | 21 #include "components/metrics/proto/omnibox_event.pb.h" |
19 #include "components/omnibox/browser/autocomplete_controller.h" | 22 #include "components/omnibox/browser/autocomplete_controller.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 EXPECT_FALSE(search_provider_field_trial_triggered_in_session()); | 763 EXPECT_FALSE(search_provider_field_trial_triggered_in_session()); |
761 url = GetDestinationURL(match, base::TimeDelta::FromMilliseconds(2456)); | 764 url = GetDestinationURL(match, base::TimeDelta::FromMilliseconds(2456)); |
762 EXPECT_EQ("//aqs=chrome.0.69i57j69i58j5l2j0l3j69i59.2456j0j4&", url.path()); | 765 EXPECT_EQ("//aqs=chrome.0.69i57j69i58j5l2j0l3j69i59.2456j0j4&", url.path()); |
763 | 766 |
764 // Test page classification and field trial triggered set. | 767 // Test page classification and field trial triggered set. |
765 set_search_provider_field_trial_triggered_in_session(true); | 768 set_search_provider_field_trial_triggered_in_session(true); |
766 EXPECT_TRUE(search_provider_field_trial_triggered_in_session()); | 769 EXPECT_TRUE(search_provider_field_trial_triggered_in_session()); |
767 url = GetDestinationURL(match, base::TimeDelta::FromMilliseconds(2456)); | 770 url = GetDestinationURL(match, base::TimeDelta::FromMilliseconds(2456)); |
768 EXPECT_EQ("//aqs=chrome.0.69i57j69i58j5l2j0l3j69i59.2456j1j4&", url.path()); | 771 EXPECT_EQ("//aqs=chrome.0.69i57j69i58j5l2j0l3j69i59.2456j1j4&", url.path()); |
769 } | 772 } |
OLD | NEW |