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

Side by Side Diff: chrome/browser/policy/configuration_policy_provider_win_unittest.cc

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <windows.h> 6 #include <windows.h>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return PolicyTestParams(type, 79 return PolicyTestParams(type,
80 policy_name, 80 policy_name,
81 Value::CreateStringValue("string_a"), 81 Value::CreateStringValue("string_a"),
82 Value::CreateStringValue("string_b")); 82 Value::CreateStringValue("string_b"));
83 } 83 }
84 static PolicyTestParams ForBooleanPolicy( 84 static PolicyTestParams ForBooleanPolicy(
85 ConfigurationPolicyType type, 85 ConfigurationPolicyType type,
86 const char* policy_name) { 86 const char* policy_name) {
87 return PolicyTestParams(type, 87 return PolicyTestParams(type,
88 policy_name, 88 policy_name,
89 Value::CreateBooleanValue(true), 89 base::TrueValue(),
90 Value::CreateBooleanValue(false)); 90 base::FalseValue());
91 } 91 }
92 static PolicyTestParams ForIntegerPolicy( 92 static PolicyTestParams ForIntegerPolicy(
93 ConfigurationPolicyType type, 93 ConfigurationPolicyType type,
94 const char* policy_name) { 94 const char* policy_name) {
95 return PolicyTestParams(type, 95 return PolicyTestParams(type,
96 policy_name, 96 policy_name,
97 Value::CreateIntegerValue(42), 97 Value::CreateIntegerValue(42),
98 Value::CreateIntegerValue(17)); 98 Value::CreateIntegerValue(17));
99 } 99 }
100 static PolicyTestParams ForListPolicy( 100 static PolicyTestParams ForListPolicy(
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 kPolicyDisabledSchemes, 502 kPolicyDisabledSchemes,
503 key::kDisabledSchemes), 503 key::kDisabledSchemes),
504 PolicyTestParams::ForStringPolicy( 504 PolicyTestParams::ForStringPolicy(
505 kPolicyDiskCacheDir, 505 kPolicyDiskCacheDir,
506 key::kDiskCacheDir), 506 key::kDiskCacheDir),
507 PolicyTestParams::ForIntegerPolicy( 507 PolicyTestParams::ForIntegerPolicy(
508 kPolicyMaxConnectionsPerProxy, 508 kPolicyMaxConnectionsPerProxy,
509 key::kMaxConnectionsPerProxy))); 509 key::kMaxConnectionsPerProxy)));
510 510
511 } // namespace policy 511 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider_mac_unittest.cc ('k') | chrome/browser/policy/policy_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698