| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_path.h" |
| 8 #include "chrome/browser/configuration_policy_pref_store.h" | 9 #include "chrome/browser/configuration_policy_pref_store.h" |
| 9 #include "chrome/browser/mock_configuration_policy_provider.h" | 10 #include "chrome/browser/mock_configuration_policy_provider.h" |
| 10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 | 13 |
| 13 class ConfigurationPolicyPrefStoreTest : public testing::Test { | 14 class ConfigurationPolicyPrefStoreTest : public testing::Test { |
| 14 public: | 15 public: |
| 15 // Applies a policy that has a string value. | 16 // Applies a policy that has a string value. |
| 16 void ApplyStringPolicyValue( | 17 void ApplyStringPolicyValue( |
| 17 ConfigurationPolicyPrefStore* store, | 18 ConfigurationPolicyPrefStore* store, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 (*current)->GetAsString(&plugin_name); | 461 (*current)->GetAsString(&plugin_name); |
| 461 EXPECT_EQ("plugin1", plugin_name); | 462 EXPECT_EQ("plugin1", plugin_name); |
| 462 ++current; | 463 ++current; |
| 463 ASSERT_TRUE(current != end); | 464 ASSERT_TRUE(current != end); |
| 464 (*current)->GetAsString(&plugin_name); | 465 (*current)->GetAsString(&plugin_name); |
| 465 EXPECT_EQ("plugin2,", plugin_name); | 466 EXPECT_EQ("plugin2,", plugin_name); |
| 466 ++current; | 467 ++current; |
| 467 EXPECT_TRUE(current == end); | 468 EXPECT_TRUE(current == end); |
| 468 } | 469 } |
| 469 | 470 |
| OLD | NEW |