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

Side by Side Diff: chrome/browser/component_updater/subresource_filter_component_installer_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 "chrome/browser/component_updater/subresource_filter_component_installe r.h" 5 #include "chrome/browser/component_updater/subresource_filter_component_installe r.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/metrics/field_trial.h" 17 #include "base/metrics/field_trial.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/sequenced_task_runner.h"
19 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
20 #include "base/threading/thread_task_runner_handle.h" 21 #include "base/threading/thread_task_runner_handle.h"
21 #include "base/version.h" 22 #include "base/version.h"
22 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
23 #include "components/component_updater/mock_component_updater_service.h" 24 #include "components/component_updater/mock_component_updater_service.h"
24 #include "components/prefs/testing_pref_service.h" 25 #include "components/prefs/testing_pref_service.h"
25 #include "components/subresource_filter/content/browser/content_ruleset_service. h" 26 #include "components/subresource_filter/content/browser/content_ruleset_service. h"
26 #include "components/subresource_filter/core/browser/ruleset_service.h" 27 #include "components/subresource_filter/core/browser/ruleset_service.h"
27 #include "components/subresource_filter/core/browser/subresource_filter_constant s.h" 28 #include "components/subresource_filter/core/browser/subresource_filter_constant s.h"
28 #include "components/subresource_filter/core/browser/subresource_filter_features .h" 29 #include "components/subresource_filter/core/browser/subresource_filter_features .h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 constexpr char kTagKey[] = "tag"; 303 constexpr char kTagKey[] = "tag";
303 constexpr char kTagValue[] = "a"; 304 constexpr char kTagValue[] = "a";
304 305
305 subresource_filter::testing::ScopedSubresourceFilterConfigurator 306 subresource_filter::testing::ScopedSubresourceFilterConfigurator
306 scoped_configuration(CreateConfigUsingRulesetFlavor(kTagValue)); 307 scoped_configuration(CreateConfigUsingRulesetFlavor(kTagValue));
307 EXPECT_EQ(update_client::InstallerAttributes({{kTagKey, kTagValue}}), 308 EXPECT_EQ(update_client::InstallerAttributes({{kTagKey, kTagValue}}),
308 GetInstallerAttributes()); 309 GetInstallerAttributes());
309 } 310 }
310 311
311 } // namespace component_updater 312 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698