| 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 "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.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/message_loop/message_loop.h" |
| 11 #include "base/test/histogram_tester.h" | 12 #include "base/test/histogram_tester.h" |
| 12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
| 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" | 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" |
| 14 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 15 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 15 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" | 16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" |
| 16 #include "components/prefs/pref_registry_simple.h" | 17 #include "components/prefs/pref_registry_simple.h" |
| 17 #include "components/prefs/testing_pref_service.h" | 18 #include "components/prefs/testing_pref_service.h" |
| 18 #include "components/proxy_config/proxy_config_pref_names.h" | 19 #include "components/proxy_config/proxy_config_pref_names.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 21 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 EXPECT_EQ("fixed_servers", mode); | 330 EXPECT_EQ("fixed_servers", mode); |
| 330 std::string server; | 331 std::string server; |
| 331 EXPECT_TRUE(value->GetString("server", &server)); | 332 EXPECT_TRUE(value->GetString("server", &server)); |
| 332 EXPECT_EQ(test_server, server); | 333 EXPECT_EQ(test_server, server); |
| 333 | 334 |
| 334 histogram_tester.ExpectUniqueSample( | 335 histogram_tester.ExpectUniqueSample( |
| 335 "DataReductionProxy.ProxyPrefMigrationResult", | 336 "DataReductionProxy.ProxyPrefMigrationResult", |
| 336 DataReductionProxyChromeSettings::PROXY_PREF_NOT_CLEARED, 1); | 337 DataReductionProxyChromeSettings::PROXY_PREF_NOT_CLEARED, 1); |
| 337 } | 338 } |
| 338 } | 339 } |
| OLD | NEW |