Commit 9e463e17 authored by Hidehiko Abe's avatar Hidehiko Abe Committed by Commit Bot

Remove gmock from managed_network_configuration_handler_unittest.cc part 1.

This has following two changes.
- Rename ManagedNetworkConfigurationHandlerTest to
  ManagedNetworkConfigurationHandlerMockTest, and then deprecate it.
- Introduce a new ManagedNetworkConfigurationHandlerTest test fixture,
  which uses Fake implementation instead of gmock.
- Migrated four tests using policy/shill_policy_on_unconfigured_wifi1.json
  into new test fixture.

BUG=234463
TEST=Ran bots.

Change-Id: I50114a323605eafd9e67accb1232c72783d3c572
Reviewed-on: https://chromium-review.googlesource.com/766407
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516327}
parent bf228a61
...@@ -116,6 +116,7 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl ...@@ -116,6 +116,7 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
friend class AutoConnectHandlerTest; friend class AutoConnectHandlerTest;
friend class ClientCertResolverTest; friend class ClientCertResolverTest;
friend class ManagedNetworkConfigurationHandlerTest; friend class ManagedNetworkConfigurationHandlerTest;
friend class ManagedNetworkConfigurationHandlerMockTest;
friend class NetworkConnectionHandlerImplTest; friend class NetworkConnectionHandlerImplTest;
friend class NetworkHandler; friend class NetworkHandler;
friend class ProhibitedTechnologiesHandlerTest; friend class ProhibitedTechnologiesHandlerTest;
......
{ {
"Device": "/device/wifi1",
"GUID": "policy_wifi1", "GUID": "policy_wifi1",
"Mode": "managed", "Mode": "managed",
"Name": "policy_wifi1",
"Passphrase": "policy's passphrase", "Passphrase": "policy's passphrase",
"Profile": "/profile/user1/shill", "Profile": "/profile/user1/shill",
"SSID": "policy_wifi1",
"SecurityClass": "psk", "SecurityClass": "psk",
"State": "idle",
"Type": "wifi", "Type": "wifi",
"UIData": "{\"onc_source\":\"user_policy\"}", "UIData": "{\"onc_source\":\"user_policy\"}",
"Visible": true,
"WiFi.HexSSID": "7769666931" // "wifi1" "WiFi.HexSSID": "7769666931" // "wifi1"
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment