OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/physical_web_provider.h" | 5 #include "components/omnibox/browser/physical_web_provider.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "components/metrics/proto/omnibox_event.pb.h" | 14 #include "components/metrics/proto/omnibox_event.pb.h" |
15 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" | 15 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" |
16 #include "components/omnibox/browser/omnibox_field_trial.h" | 16 #include "components/omnibox/browser/omnibox_field_trial.h" |
17 #include "components/omnibox/browser/test_scheme_classifier.h" | 17 #include "components/omnibox/browser/test_scheme_classifier.h" |
18 #include "components/physical_web/data_source/fake_physical_web_data_source.h" | 18 #include "components/physical_web/data_source/fake_physical_web_data_source.h" |
19 #include "components/physical_web/data_source/physical_web_data_source.h" | 19 #include "components/physical_web/data_source/physical_web_data_source.h" |
20 #include "components/physical_web/data_source/physical_web_listener.h" | 20 #include "components/physical_web/data_source/physical_web_listener.h" |
| 21 #include "components/strings/grit/components_strings.h" |
21 #include "components/variations/entropy_provider.h" | 22 #include "components/variations/entropy_provider.h" |
22 #include "components/variations/variations_associated_data.h" | 23 #include "components/variations/variations_associated_data.h" |
23 #include "grit/components_strings.h" | |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
27 #include "ui/gfx/text_elider.h" | 27 #include "ui/gfx/text_elider.h" |
28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
29 | 29 |
30 using physical_web::FakePhysicalWebDataSource; | 30 using physical_web::FakePhysicalWebDataSource; |
31 using physical_web::PhysicalWebDataSource; | 31 using physical_web::PhysicalWebDataSource; |
32 using physical_web::PhysicalWebListener; | 32 using physical_web::PhysicalWebListener; |
33 | 33 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 FakePhysicalWebDataSource* data_source = | 422 FakePhysicalWebDataSource* data_source = |
423 client_->GetFakePhysicalWebDataSource(); | 423 client_->GetFakePhysicalWebDataSource(); |
424 EXPECT_TRUE(data_source); | 424 EXPECT_TRUE(data_source); |
425 | 425 |
426 data_source->SetMetadataList(CreateMetadata(1)); | 426 data_source->SetMetadataList(CreateMetadata(1)); |
427 provider_->Start(CreateInputForNTP(), false); | 427 provider_->Start(CreateInputForNTP(), false); |
428 | 428 |
429 EXPECT_TRUE(provider_->matches().empty()); | 429 EXPECT_TRUE(provider_->matches().empty()); |
430 } | 430 } |
OLD | NEW |