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

Side by Side Diff: components/policy/core/browser/proxy_policy_handler_unittest.cc

Issue 1384463002: Componentize proxy_policy_handler from chrome/browser/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and updated Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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> 5 #include <string>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/net/proxy_policy_handler.h"
10 #include "components/policy/core/browser/configuration_policy_pref_store.h" 9 #include "components/policy/core/browser/configuration_policy_pref_store.h"
11 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 10 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
11 #include "components/policy/core/browser/proxy_policy_handler.h"
12 #include "components/policy/core/common/policy_service_impl.h" 12 #include "components/policy/core/common/policy_service_impl.h"
13 #include "components/policy/core/common/policy_types.h" 13 #include "components/policy/core/common/policy_types.h"
14 #include "components/proxy_config/proxy_config_dictionary.h" 14 #include "components/proxy_config/proxy_config_dictionary.h"
15 #include "components/proxy_config/proxy_config_pref_names.h" 15 #include "components/proxy_config/proxy_config_pref_names.h"
16 #include "policy/policy_constants.h" 16 #include "policy/policy_constants.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace policy { 19 namespace policy {
20 20
21 // Test cases for the proxy policy settings. 21 // Test cases for the proxy policy settings.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 POLICY_SOURCE_CLOUD, 345 POLICY_SOURCE_CLOUD,
346 new base::FundamentalValue(i), 346 new base::FundamentalValue(i),
347 NULL); 347 NULL);
348 UpdateProviderPolicy(policy); 348 UpdateProviderPolicy(policy);
349 const base::Value* value = NULL; 349 const base::Value* value = NULL;
350 EXPECT_FALSE(store_->GetValue(proxy_config::prefs::kProxy, &value)); 350 EXPECT_FALSE(store_->GetValue(proxy_config::prefs::kProxy, &value));
351 } 351 }
352 } 352 }
353 353
354 } // namespace policy 354 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/browser/proxy_policy_handler.cc ('k') | components/policy/policy_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698