summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/network_library_unittest.cc
diff options
context:
space:
mode:
authorkeishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 14:12:38 +0000
committerkeishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 14:12:38 +0000
commit3ac6b8fc372273274f2f219af304dde3f4df2ec6 (patch)
treec5d97b9fad3b858dac705025b1ef9148087f6944 /chrome/browser/chromeos/cros/network_library_unittest.cc
parentf9461a945da6fb2d47c89b64ca4eb7d6c1dcf68a (diff)
downloadchromium_src-3ac6b8fc372273274f2f219af304dde3f4df2ec6.zip
chromium_src-3ac6b8fc372273274f2f219af304dde3f4df2ec6.tar.gz
chromium_src-3ac6b8fc372273274f2f219af304dde3f4df2ec6.tar.bz2
Changing GetTestFilePath so we can place test files outside of the chromeos directory.
BUG=176884 Review URL: https://chromiumcodereview.appspot.com/12462010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library_unittest.cc')
-rw-r--r--chrome/browser/chromeos/cros/network_library_unittest.cc40
1 files changed, 21 insertions, 19 deletions
diff --git a/chrome/browser/chromeos/cros/network_library_unittest.cc b/chrome/browser/chromeos/cros/network_library_unittest.cc
index 6099511..aab1040 100644
--- a/chrome/browser/chromeos/cros/network_library_unittest.cc
+++ b/chrome/browser/chromeos/cros/network_library_unittest.cc
@@ -389,7 +389,7 @@ TEST_F(NetworkLibraryStubTest, NetworkConnectVPN) {
TEST_F(NetworkLibraryStubTest, LoadOncNetworksWithInvalidConfig) {
LoadOncAndVerifyNetworks(
"toplevel_partially_invalid.onc",
- "net/shill_for_toplevel_partially_invalid.json",
+ "chromeos/net/shill_for_toplevel_partially_invalid.json",
onc::ONC_SOURCE_USER_POLICY,
false /* expect import to fail */);
@@ -402,7 +402,7 @@ struct ImportParams {
// |onc_file|: Filename of source ONC, relative to
// chromeos/test/data/network.
// |shill_file|: Filename of expected Shill config, relative to
- // chrome/test/data/chromeos).
+ // chrome/test/data).
// |onc_source|: The source of the ONC.
// |expect_import_result|: The expected return value of LoadOncNetworks.
ImportParams(const std::string& onc_file,
@@ -454,42 +454,44 @@ INSTANTIATE_TEST_CASE_P(
LoadOncNetworksTest,
::testing::Values(
ImportParams("managed_toplevel1.onc",
- "net/shill_for_managed_toplevel1.json",
+ "chromeos/net/shill_for_managed_toplevel1.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("managed_toplevel2.onc",
- "net/shill_for_managed_toplevel2.json",
+ "chromeos/net/shill_for_managed_toplevel2.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("managed_toplevel_l2tpipsec.onc",
- "net/shill_for_managed_toplevel_l2tpipsec.json",
+ "chromeos/net/shill_for_managed_toplevel_l2tpipsec.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("managed_toplevel_wifi_peap.onc",
- "net/shill_for_managed_toplevel_wifi_peap.json",
+ "chromeos/net/shill_for_managed_toplevel_wifi_peap.json",
onc::ONC_SOURCE_DEVICE_POLICY),
ImportParams("toplevel_wifi_open.onc",
- "net/shill_for_toplevel_wifi_open.json",
+ "chromeos/net/shill_for_toplevel_wifi_open.json",
onc::ONC_SOURCE_DEVICE_POLICY),
ImportParams("toplevel_wifi_wep_proxy.onc",
- "net/shill_for_toplevel_wifi_wep_proxy.json",
+ "chromeos/net/shill_for_toplevel_wifi_wep_proxy.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("toplevel_wifi_wpa_psk.onc",
- "net/shill_for_toplevel_wifi_wpa_psk.json",
+ "chromeos/net/shill_for_toplevel_wifi_wpa_psk.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("toplevel_wifi_leap.onc",
- "net/shill_for_toplevel_wifi_leap.json",
- onc::ONC_SOURCE_USER_POLICY),
- ImportParams("toplevel_wifi_eap_clientcert.onc",
- "net/shill_for_toplevel_wifi_eap_clientcert.json",
+ "chromeos/net/shill_for_toplevel_wifi_leap.json",
onc::ONC_SOURCE_USER_POLICY),
+ ImportParams(
+ "toplevel_wifi_eap_clientcert.onc",
+ "chromeos/net/shill_for_toplevel_wifi_eap_clientcert.json",
+ onc::ONC_SOURCE_USER_POLICY),
ImportParams("toplevel_openvpn_clientcert.onc",
- "net/shill_for_toplevel_openvpn_clientcert.json",
+ "chromeos/net/shill_for_toplevel_openvpn_clientcert.json",
onc::ONC_SOURCE_USER_POLICY),
ImportParams("toplevel_wifi_remove.onc",
- "net/shill_for_toplevel_wifi_remove.json",
+ "chromeos/net/shill_for_toplevel_wifi_remove.json",
onc::ONC_SOURCE_USER_POLICY),
- ImportParams("toplevel_with_unknown_fields.onc",
- "net/shill_for_toplevel_with_unknown_fields.json",
- onc::ONC_SOURCE_USER_POLICY,
- false)));
+ ImportParams(
+ "toplevel_with_unknown_fields.onc",
+ "chromeos/net/shill_for_toplevel_with_unknown_fields.json",
+ onc::ONC_SOURCE_USER_POLICY,
+ false)));
// TODO(stevenjb): Test remembered networks.