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

Unified Diff: chrome/browser/policy/network_configuration_updater_unittest.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove translated strings Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/network_configuration_updater_unittest.cc
diff --git a/chrome/browser/policy/network_configuration_updater_unittest.cc b/chrome/browser/policy/network_configuration_updater_unittest.cc
index 64c47cd8531cfec788ca09f98b9201ce60817099..4aae523d463cafbf8f56f57d697d8a7c07f30c69 100644
--- a/chrome/browser/policy/network_configuration_updater_unittest.cc
+++ b/chrome/browser/policy/network_configuration_updater_unittest.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/policy/mock_configuration_policy_provider.h"
#include "chrome/browser/policy/policy_map.h"
#include "chrome/browser/policy/policy_service_impl.h"
+#include "chromeos/network/onc/onc_constants.h"
#include "policy/policy_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -42,13 +43,13 @@ class NetworkConfigurationUpdaterTest
}
// Maps configuration policy name to corresponding ONC source.
- static chromeos::NetworkUIData::ONCSource NameToONCSource(
+ static chromeos::onc::ONCSource NameToONCSource(
const std::string& name) {
if (name == key::kDeviceOpenNetworkConfiguration)
- return chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY;
+ return chromeos::onc::ONC_SOURCE_DEVICE_POLICY;
if (name == key::kOpenNetworkConfiguration)
- return chromeos::NetworkUIData::ONC_SOURCE_USER_POLICY;
- return chromeos::NetworkUIData::ONC_SOURCE_NONE;
+ return chromeos::onc::ONC_SOURCE_USER_POLICY;
+ return chromeos::onc::ONC_SOURCE_NONE;
}
chromeos::MockNetworkLibrary network_library_;
@@ -69,7 +70,7 @@ TEST_P(NetworkConfigurationUpdaterTest, InitialUpdates) {
const char* device_onc = GetParam() == key::kDeviceOpenNetworkConfiguration ?
kFakeONC : kEmptyConfiguration;
EXPECT_CALL(network_library_, LoadOncNetworks(
- device_onc, "", chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY, _, _));
+ device_onc, "", chromeos::onc::ONC_SOURCE_DEVICE_POLICY, _, _));
{
NetworkConfigurationUpdater updater(policy_service_.get(),
@@ -149,11 +150,11 @@ TEST_P(NetworkConfigurationUpdaterTest, PolicyChange) {
// implementation, we always apply both policies.
EXPECT_CALL(network_library_, LoadOncNetworks(
kEmptyConfiguration, "",
- chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY, _, _));
+ chromeos::onc::ONC_SOURCE_DEVICE_POLICY, _, _));
EXPECT_CALL(network_library_, LoadOncNetworks(
kEmptyConfiguration, "",
- chromeos::NetworkUIData::ONC_SOURCE_USER_POLICY, _, _));
+ chromeos::onc::ONC_SOURCE_USER_POLICY, _, _));
EXPECT_CALL(network_library_, RemoveNetworkProfileObserver(_));

Powered by Google App Engine
This is Rietveld 408576698