| 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 <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/prefs/command_line_pref_store.h" | 11 #include "chrome/browser/prefs/command_line_pref_store.h" |
| 12 #include "chrome/browser/prefs/proxy_config_dictionary.h" | |
| 13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/proxy_config/proxy_config_dictionary.h" |
| 15 #include "ui/base/ui_base_switches.h" | 15 #include "ui/base/ui_base_switches.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const char unknown_bool[] = "unknown_switch"; | 19 const char unknown_bool[] = "unknown_switch"; |
| 20 const char unknown_string[] = "unknown_other_switch"; | 20 const char unknown_string[] = "unknown_other_switch"; |
| 21 | 21 |
| 22 } // namespace | 22 } // namespace |
| 23 | 23 |
| 24 class TestCommandLinePrefStore : public CommandLinePrefStore { | 24 class TestCommandLinePrefStore : public CommandLinePrefStore { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 cl3.AppendSwitchASCII(switches::kCipherSuiteBlacklist, | 210 cl3.AppendSwitchASCII(switches::kCipherSuiteBlacklist, |
| 211 "0x0004;MOAR;0x0005"); | 211 "0x0004;MOAR;0x0005"); |
| 212 scoped_refptr<TestCommandLinePrefStore> store3 = | 212 scoped_refptr<TestCommandLinePrefStore> store3 = |
| 213 new TestCommandLinePrefStore(&cl3); | 213 new TestCommandLinePrefStore(&cl3); |
| 214 const char* const expected_ciphers3[] = { | 214 const char* const expected_ciphers3[] = { |
| 215 "0x0004;MOAR;0x0005" | 215 "0x0004;MOAR;0x0005" |
| 216 }; | 216 }; |
| 217 store3->VerifySSLCipherSuites(expected_ciphers3, | 217 store3->VerifySSLCipherSuites(expected_ciphers3, |
| 218 arraysize(expected_ciphers3)); | 218 arraysize(expected_ciphers3)); |
| 219 } | 219 } |
| OLD | NEW |