OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <string> |
| 6 #include <vector> |
| 7 |
5 #include "base/command_line.h" | 8 #include "base/command_line.h" |
6 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
7 #include "chrome/browser/component_updater/chrome_component_updater_configurator
.h" | 10 #include "chrome/browser/component_updater/chrome_component_updater_configurator
.h" |
8 #include "components/component_updater/component_updater_switches.h" | 11 #include "components/component_updater/component_updater_switches.h" |
9 #include "components/update_client/configurator.h" | 12 #include "components/update_client/configurator.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "url/gurl.h" | 14 #include "url/gurl.h" |
12 | 15 |
13 namespace component_updater { | 16 namespace component_updater { |
14 | 17 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 TEST(ChromeComponentUpdaterConfiguratorTest, TestSwitchRequestParam) { | 54 TEST(ChromeComponentUpdaterConfiguratorTest, TestSwitchRequestParam) { |
52 base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess(); | 55 base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess(); |
53 cmdline->AppendSwitchASCII(switches::kComponentUpdater, "test-request"); | 56 cmdline->AppendSwitchASCII(switches::kComponentUpdater, "test-request"); |
54 | 57 |
55 const auto config(MakeChromeComponentUpdaterConfigurator(cmdline, NULL)); | 58 const auto config(MakeChromeComponentUpdaterConfigurator(cmdline, NULL)); |
56 | 59 |
57 EXPECT_FALSE(config->ExtraRequestParams().empty()); | 60 EXPECT_FALSE(config->ExtraRequestParams().empty()); |
58 } | 61 } |
59 | 62 |
60 } // namespace component_updater | 63 } // namespace component_updater |
OLD | NEW |