Index: chromeos/network/network_state_handler.h |
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h |
index 135d225737a0a0544fd6d84e275f4fd43a0af4a2..f032f77c96c418fc8591484ad443f20b232fe3cd 100644 |
--- a/chromeos/network/network_state_handler.h |
+++ b/chromeos/network/network_state_handler.h |
@@ -224,6 +224,10 @@ class CHROMEOS_EXPORT NetworkStateHandler |
return default_network_path_; |
} |
+ // Sets the |last_error_| property of the matching NetworkState for tests. |
+ void SetLastErrorForTest(const std::string& service_path, |
+ const std::string& error); |
+ |
// Constructs and initializes an instance for testing. |
static NetworkStateHandler* InitializeForTest(); |