OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 | 225 |
226 void SetupCellular() { | 226 void SetupCellular() { |
227 UIDelegateStub::s_show_account_details_called_ = 0; | 227 UIDelegateStub::s_show_account_details_called_ = 0; |
228 | 228 |
229 // Add a Cellular GSM Device. | 229 // Add a Cellular GSM Device. |
230 device_test_->AddDevice(kCellularDevicePath, shill::kTypeCellular, | 230 device_test_->AddDevice(kCellularDevicePath, shill::kTypeCellular, |
231 "stub_cellular_device1"); | 231 "stub_cellular_device1"); |
232 device_test_->SetDeviceProperty(kCellularDevicePath, | 232 device_test_->SetDeviceProperty(kCellularDevicePath, |
233 shill::kCarrierProperty, | 233 shill::kCarrierProperty, |
234 base::StringValue("Cellular1_Carrier")); | 234 base::Value("Cellular1_Carrier")); |
235 base::DictionaryValue home_provider; | 235 base::DictionaryValue home_provider; |
236 home_provider.SetString("name", "Cellular1_Provider"); | 236 home_provider.SetString("name", "Cellular1_Provider"); |
237 home_provider.SetString("code", "000000"); | 237 home_provider.SetString("code", "000000"); |
238 home_provider.SetString("country", "us"); | 238 home_provider.SetString("country", "us"); |
239 device_test_->SetDeviceProperty( | 239 device_test_->SetDeviceProperty( |
240 kCellularDevicePath, shill::kHomeProviderProperty, home_provider); | 240 kCellularDevicePath, shill::kHomeProviderProperty, home_provider); |
241 device_test_->SetDeviceProperty( | 241 device_test_->SetDeviceProperty(kCellularDevicePath, |
242 kCellularDevicePath, shill::kTechnologyFamilyProperty, | 242 shill::kTechnologyFamilyProperty, |
243 base::StringValue(shill::kNetworkTechnologyGsm)); | 243 base::Value(shill::kNetworkTechnologyGsm)); |
244 device_test_->SetSimLocked(kCellularDevicePath, false); | 244 device_test_->SetSimLocked(kCellularDevicePath, false); |
245 | 245 |
246 // Add the Cellular Service. | 246 // Add the Cellular Service. |
247 AddService(kCellular1ServicePath, "cellular1", shill::kTypeCellular, | 247 AddService(kCellular1ServicePath, "cellular1", shill::kTypeCellular, |
248 shill::kStateIdle); | 248 shill::kStateIdle); |
249 service_test_->SetServiceProperty( | 249 service_test_->SetServiceProperty( |
250 kCellular1ServicePath, shill::kAutoConnectProperty, base::Value(true)); | 250 kCellular1ServicePath, shill::kAutoConnectProperty, base::Value(true)); |
251 service_test_->SetServiceProperty( | 251 service_test_->SetServiceProperty( |
252 kCellular1ServicePath, shill::kNetworkTechnologyProperty, | 252 kCellular1ServicePath, shill::kNetworkTechnologyProperty, |
253 base::StringValue(shill::kNetworkTechnologyGsm)); | 253 base::Value(shill::kNetworkTechnologyGsm)); |
254 service_test_->SetServiceProperty( | 254 service_test_->SetServiceProperty( |
255 kCellular1ServicePath, shill::kActivationStateProperty, | 255 kCellular1ServicePath, shill::kActivationStateProperty, |
256 base::StringValue(shill::kActivationStateNotActivated)); | 256 base::Value(shill::kActivationStateNotActivated)); |
257 service_test_->SetServiceProperty( | 257 service_test_->SetServiceProperty(kCellular1ServicePath, |
258 kCellular1ServicePath, shill::kRoamingStateProperty, | 258 shill::kRoamingStateProperty, |
259 base::StringValue(shill::kRoamingStateHome)); | 259 base::Value(shill::kRoamingStateHome)); |
260 | 260 |
261 profile_test_->AddService(kUser1ProfilePath, kCellular1ServicePath); | 261 profile_test_->AddService(kUser1ProfilePath, kCellular1ServicePath); |
262 content::RunAllPendingInMessageLoop(); | 262 content::RunAllPendingInMessageLoop(); |
263 } | 263 } |
264 | 264 |
265 void AddService(const std::string& service_path, | 265 void AddService(const std::string& service_path, |
266 const std::string& name, | 266 const std::string& name, |
267 const std::string& type, | 267 const std::string& type, |
268 const std::string& state) { | 268 const std::string& state) { |
269 service_test_->AddService(service_path, service_path + "_guid", name, type, | 269 service_test_->AddService(service_path, service_path + "_guid", name, type, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 device_test_->AddDevice(kEthernetDevicePath, shill::kTypeEthernet, | 324 device_test_->AddDevice(kEthernetDevicePath, shill::kTypeEthernet, |
325 "stub_ethernet_device1"); | 325 "stub_ethernet_device1"); |
326 | 326 |
327 device_test_->AddDevice(kWifiDevicePath, shill::kTypeWifi, | 327 device_test_->AddDevice(kWifiDevicePath, shill::kTypeWifi, |
328 "stub_wifi_device1"); | 328 "stub_wifi_device1"); |
329 base::ListValue wifi_ip_configs; | 329 base::ListValue wifi_ip_configs; |
330 wifi_ip_configs.AppendString(kIPConfigPath); | 330 wifi_ip_configs.AppendString(kIPConfigPath); |
331 device_test_->SetDeviceProperty(kWifiDevicePath, shill::kIPConfigsProperty, | 331 device_test_->SetDeviceProperty(kWifiDevicePath, shill::kIPConfigsProperty, |
332 wifi_ip_configs); | 332 wifi_ip_configs); |
333 device_test_->SetDeviceProperty(kWifiDevicePath, shill::kAddressProperty, | 333 device_test_->SetDeviceProperty(kWifiDevicePath, shill::kAddressProperty, |
334 base::StringValue("001122aabbcc")); | 334 base::Value("001122aabbcc")); |
335 | 335 |
336 // Add Services | 336 // Add Services |
337 AddService("stub_ethernet", "eth0", shill::kTypeEthernet, | 337 AddService("stub_ethernet", "eth0", shill::kTypeEthernet, |
338 shill::kStateOnline); | 338 shill::kStateOnline); |
339 service_test_->SetServiceProperty( | 339 service_test_->SetServiceProperty( |
340 "stub_ethernet", shill::kProfileProperty, | 340 "stub_ethernet", shill::kProfileProperty, |
341 base::StringValue(ShillProfileClient::GetSharedProfilePath())); | 341 base::Value(ShillProfileClient::GetSharedProfilePath())); |
342 profile_test_->AddService(ShillProfileClient::GetSharedProfilePath(), | 342 profile_test_->AddService(ShillProfileClient::GetSharedProfilePath(), |
343 "stub_ethernet"); | 343 "stub_ethernet"); |
344 | 344 |
345 AddService(kWifi1ServicePath, "wifi1", shill::kTypeWifi, | 345 AddService(kWifi1ServicePath, "wifi1", shill::kTypeWifi, |
346 shill::kStateOnline); | 346 shill::kStateOnline); |
347 service_test_->SetServiceProperty(kWifi1ServicePath, | 347 service_test_->SetServiceProperty(kWifi1ServicePath, |
348 shill::kSecurityClassProperty, | 348 shill::kSecurityClassProperty, |
349 base::StringValue(shill::kSecurityWep)); | 349 base::Value(shill::kSecurityWep)); |
350 service_test_->SetServiceProperty(kWifi1ServicePath, | 350 service_test_->SetServiceProperty(kWifi1ServicePath, shill::kWifiBSsid, |
351 shill::kWifiBSsid, | 351 base::Value("00:01:02:03:04:05")); |
352 base::StringValue("00:01:02:03:04:05")); | |
353 service_test_->SetServiceProperty( | 352 service_test_->SetServiceProperty( |
354 kWifi1ServicePath, shill::kSignalStrengthProperty, base::Value(40)); | 353 kWifi1ServicePath, shill::kSignalStrengthProperty, base::Value(40)); |
355 service_test_->SetServiceProperty(kWifi1ServicePath, | 354 service_test_->SetServiceProperty(kWifi1ServicePath, |
356 shill::kProfileProperty, | 355 shill::kProfileProperty, |
357 base::StringValue(kUser1ProfilePath)); | 356 base::Value(kUser1ProfilePath)); |
358 service_test_->SetServiceProperty( | 357 service_test_->SetServiceProperty( |
359 kWifi1ServicePath, shill::kConnectableProperty, base::Value(true)); | 358 kWifi1ServicePath, shill::kConnectableProperty, base::Value(true)); |
360 service_test_->SetServiceProperty(kWifi1ServicePath, shill::kDeviceProperty, | 359 service_test_->SetServiceProperty(kWifi1ServicePath, shill::kDeviceProperty, |
361 base::StringValue(kWifiDevicePath)); | 360 base::Value(kWifiDevicePath)); |
362 base::DictionaryValue static_ipconfig; | 361 base::DictionaryValue static_ipconfig; |
363 static_ipconfig.SetStringWithoutPathExpansion(shill::kAddressProperty, | 362 static_ipconfig.SetStringWithoutPathExpansion(shill::kAddressProperty, |
364 "1.2.3.4"); | 363 "1.2.3.4"); |
365 service_test_->SetServiceProperty( | 364 service_test_->SetServiceProperty( |
366 kWifi1ServicePath, shill::kStaticIPConfigProperty, static_ipconfig); | 365 kWifi1ServicePath, shill::kStaticIPConfigProperty, static_ipconfig); |
367 base::ListValue frequencies1; | 366 base::ListValue frequencies1; |
368 frequencies1.AppendInteger(2400); | 367 frequencies1.AppendInteger(2400); |
369 service_test_->SetServiceProperty( | 368 service_test_->SetServiceProperty( |
370 kWifi1ServicePath, shill::kWifiFrequencyListProperty, frequencies1); | 369 kWifi1ServicePath, shill::kWifiFrequencyListProperty, frequencies1); |
371 service_test_->SetServiceProperty(kWifi1ServicePath, shill::kWifiFrequency, | 370 service_test_->SetServiceProperty(kWifi1ServicePath, shill::kWifiFrequency, |
372 base::Value(2400)); | 371 base::Value(2400)); |
373 profile_test_->AddService(kUser1ProfilePath, kWifi1ServicePath); | 372 profile_test_->AddService(kUser1ProfilePath, kWifi1ServicePath); |
374 | 373 |
375 AddService(kWifi2ServicePath, "wifi2_PSK", shill::kTypeWifi, | 374 AddService(kWifi2ServicePath, "wifi2_PSK", shill::kTypeWifi, |
376 shill::kStateIdle); | 375 shill::kStateIdle); |
377 service_test_->SetServiceProperty(kWifi2ServicePath, | 376 service_test_->SetServiceProperty(kWifi2ServicePath, |
378 shill::kSecurityClassProperty, | 377 shill::kSecurityClassProperty, |
379 base::StringValue(shill::kSecurityPsk)); | 378 base::Value(shill::kSecurityPsk)); |
380 service_test_->SetServiceProperty( | 379 service_test_->SetServiceProperty( |
381 kWifi2ServicePath, shill::kSignalStrengthProperty, base::Value(80)); | 380 kWifi2ServicePath, shill::kSignalStrengthProperty, base::Value(80)); |
382 service_test_->SetServiceProperty( | 381 service_test_->SetServiceProperty( |
383 kWifi2ServicePath, shill::kConnectableProperty, base::Value(true)); | 382 kWifi2ServicePath, shill::kConnectableProperty, base::Value(true)); |
384 | 383 |
385 AddService("stub_wimax", "wimax", shill::kTypeWimax, shill::kStateOnline); | 384 AddService("stub_wimax", "wimax", shill::kTypeWimax, shill::kStateOnline); |
386 service_test_->SetServiceProperty( | 385 service_test_->SetServiceProperty( |
387 "stub_wimax", shill::kSignalStrengthProperty, base::Value(40)); | 386 "stub_wimax", shill::kSignalStrengthProperty, base::Value(40)); |
388 service_test_->SetServiceProperty("stub_wimax", shill::kProfileProperty, | 387 service_test_->SetServiceProperty("stub_wimax", shill::kProfileProperty, |
389 base::StringValue(kUser1ProfilePath)); | 388 base::Value(kUser1ProfilePath)); |
390 service_test_->SetServiceProperty("stub_wimax", shill::kConnectableProperty, | 389 service_test_->SetServiceProperty("stub_wimax", shill::kConnectableProperty, |
391 base::Value(true)); | 390 base::Value(true)); |
392 profile_test_->AddService(kUser1ProfilePath, "stub_wimax"); | 391 profile_test_->AddService(kUser1ProfilePath, "stub_wimax"); |
393 | 392 |
394 base::ListValue frequencies2; | 393 base::ListValue frequencies2; |
395 frequencies2.AppendInteger(2400); | 394 frequencies2.AppendInteger(2400); |
396 frequencies2.AppendInteger(5000); | 395 frequencies2.AppendInteger(5000); |
397 service_test_->SetServiceProperty( | 396 service_test_->SetServiceProperty( |
398 kWifi2ServicePath, shill::kWifiFrequencyListProperty, frequencies2); | 397 kWifi2ServicePath, shill::kWifiFrequencyListProperty, frequencies2); |
399 service_test_->SetServiceProperty(kWifi2ServicePath, shill::kWifiFrequency, | 398 service_test_->SetServiceProperty(kWifi2ServicePath, shill::kWifiFrequency, |
400 base::Value(5000)); | 399 base::Value(5000)); |
401 service_test_->SetServiceProperty(kWifi2ServicePath, | 400 service_test_->SetServiceProperty(kWifi2ServicePath, |
402 shill::kProfileProperty, | 401 shill::kProfileProperty, |
403 base::StringValue(kUser1ProfilePath)); | 402 base::Value(kUser1ProfilePath)); |
404 profile_test_->AddService(kUser1ProfilePath, kWifi2ServicePath); | 403 profile_test_->AddService(kUser1ProfilePath, kWifi2ServicePath); |
405 | 404 |
406 AddService("stub_vpn1", "vpn1", shill::kTypeVPN, shill::kStateOnline); | 405 AddService("stub_vpn1", "vpn1", shill::kTypeVPN, shill::kStateOnline); |
407 service_test_->SetServiceProperty( | 406 service_test_->SetServiceProperty("stub_vpn1", shill::kProviderTypeProperty, |
408 "stub_vpn1", shill::kProviderTypeProperty, | 407 base::Value(shill::kProviderOpenVpn)); |
409 base::StringValue(shill::kProviderOpenVpn)); | |
410 profile_test_->AddService(kUser1ProfilePath, "stub_vpn1"); | 408 profile_test_->AddService(kUser1ProfilePath, "stub_vpn1"); |
411 | 409 |
412 AddService("stub_vpn2", "vpn2", shill::kTypeVPN, shill::kStateOffline); | 410 AddService("stub_vpn2", "vpn2", shill::kTypeVPN, shill::kStateOffline); |
413 service_test_->SetServiceProperty( | 411 service_test_->SetServiceProperty( |
414 "stub_vpn2", shill::kProviderTypeProperty, | 412 "stub_vpn2", shill::kProviderTypeProperty, |
415 base::StringValue(shill::kProviderThirdPartyVpn)); | 413 base::Value(shill::kProviderThirdPartyVpn)); |
416 service_test_->SetServiceProperty( | 414 service_test_->SetServiceProperty( |
417 "stub_vpn2", shill::kProviderHostProperty, | 415 "stub_vpn2", shill::kProviderHostProperty, |
418 base::StringValue("third_party_provider_extension_id")); | 416 base::Value("third_party_provider_extension_id")); |
419 profile_test_->AddService(kUser1ProfilePath, "stub_vpn2"); | 417 profile_test_->AddService(kUser1ProfilePath, "stub_vpn2"); |
420 | 418 |
421 content::RunAllPendingInMessageLoop(); | 419 content::RunAllPendingInMessageLoop(); |
422 } | 420 } |
423 | 421 |
424 protected: | 422 protected: |
425 NetworkPortalDetectorTestImpl* detector() { return detector_; } | 423 NetworkPortalDetectorTestImpl* detector() { return detector_; } |
426 | 424 |
427 NetworkPortalDetectorTestImpl* detector_; | 425 NetworkPortalDetectorTestImpl* detector_; |
428 ShillManagerClient::TestInterface* manager_test_; | 426 ShillManagerClient::TestInterface* manager_test_; |
(...skipping 18 matching lines...) Expand all Loading... |
447 | 445 |
448 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, StartActivate) { | 446 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, StartActivate) { |
449 SetupCellular(); | 447 SetupCellular(); |
450 EXPECT_TRUE(RunNetworkingSubtest("startActivate")) << message_; | 448 EXPECT_TRUE(RunNetworkingSubtest("startActivate")) << message_; |
451 EXPECT_EQ(1, UIDelegateStub::s_show_account_details_called_); | 449 EXPECT_EQ(1, UIDelegateStub::s_show_account_details_called_); |
452 } | 450 } |
453 | 451 |
454 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, StartActivateSprint) { | 452 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, StartActivateSprint) { |
455 SetupCellular(); | 453 SetupCellular(); |
456 // Set the carrier to Sprint. | 454 // Set the carrier to Sprint. |
457 device_test_->SetDeviceProperty(kCellularDevicePath, | 455 device_test_->SetDeviceProperty(kCellularDevicePath, shill::kCarrierProperty, |
458 shill::kCarrierProperty, | 456 base::Value(shill::kCarrierSprint)); |
459 base::StringValue(shill::kCarrierSprint)); | |
460 EXPECT_TRUE(RunNetworkingSubtest("startActivateSprint")) << message_; | 457 EXPECT_TRUE(RunNetworkingSubtest("startActivateSprint")) << message_; |
461 EXPECT_EQ(0, UIDelegateStub::s_show_account_details_called_); | 458 EXPECT_EQ(0, UIDelegateStub::s_show_account_details_called_); |
462 } | 459 } |
463 | 460 |
464 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, | 461 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, |
465 StartConnectNonexistent) { | 462 StartConnectNonexistent) { |
466 EXPECT_TRUE(RunNetworkingSubtest("startConnectNonexistent")) << message_; | 463 EXPECT_TRUE(RunNetworkingSubtest("startConnectNonexistent")) << message_; |
467 } | 464 } |
468 | 465 |
469 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, | 466 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 556 |
560 // TODO(stevenjb): Find a better way to set this up on Chrome OS. | 557 // TODO(stevenjb): Find a better way to set this up on Chrome OS. |
561 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, GetManagedProperties) { | 558 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, GetManagedProperties) { |
562 const std::string uidata_blob = | 559 const std::string uidata_blob = |
563 "{ \"user_settings\": {" | 560 "{ \"user_settings\": {" |
564 " \"WiFi\": {" | 561 " \"WiFi\": {" |
565 " \"Passphrase\": \"FAKE_CREDENTIAL_VPaJDV9x\" }" | 562 " \"Passphrase\": \"FAKE_CREDENTIAL_VPaJDV9x\" }" |
566 " }" | 563 " }" |
567 "}"; | 564 "}"; |
568 service_test_->SetServiceProperty(kWifi2ServicePath, shill::kUIDataProperty, | 565 service_test_->SetServiceProperty(kWifi2ServicePath, shill::kUIDataProperty, |
569 base::StringValue(uidata_blob)); | 566 base::Value(uidata_blob)); |
570 service_test_->SetServiceProperty( | 567 service_test_->SetServiceProperty( |
571 kWifi2ServicePath, shill::kAutoConnectProperty, base::Value(false)); | 568 kWifi2ServicePath, shill::kAutoConnectProperty, base::Value(false)); |
572 | 569 |
573 // Update the profile entry. | 570 // Update the profile entry. |
574 profile_test_->AddService(kUser1ProfilePath, kWifi2ServicePath); | 571 profile_test_->AddService(kUser1ProfilePath, kWifi2ServicePath); |
575 | 572 |
576 content::RunAllPendingInMessageLoop(); | 573 content::RunAllPendingInMessageLoop(); |
577 | 574 |
578 const std::string user_policy_blob = | 575 const std::string user_policy_blob = |
579 "{ \"NetworkConfigurations\": [" | 576 "{ \"NetworkConfigurations\": [" |
580 " { \"GUID\": \"stub_wifi2\"," | 577 " { \"GUID\": \"stub_wifi2\"," |
581 " \"Type\": \"WiFi\"," | 578 " \"Type\": \"WiFi\"," |
582 " \"Name\": \"My WiFi Network\"," | 579 " \"Name\": \"My WiFi Network\"," |
583 " \"WiFi\": {" | 580 " \"WiFi\": {" |
584 " \"HexSSID\": \"77696669325F50534B\"," // "wifi2_PSK" | 581 " \"HexSSID\": \"77696669325F50534B\"," // "wifi2_PSK" |
585 " \"Passphrase\": \"passphrase\"," | 582 " \"Passphrase\": \"passphrase\"," |
586 " \"Recommended\": [ \"AutoConnect\", \"Passphrase\" ]," | 583 " \"Recommended\": [ \"AutoConnect\", \"Passphrase\" ]," |
587 " \"Security\": \"WPA-PSK\" }" | 584 " \"Security\": \"WPA-PSK\" }" |
588 " }" | 585 " }" |
589 " ]," | 586 " ]," |
590 " \"Certificates\": []," | 587 " \"Certificates\": []," |
591 " \"Type\": \"UnencryptedConfiguration\"" | 588 " \"Type\": \"UnencryptedConfiguration\"" |
592 "}"; | 589 "}"; |
593 | 590 |
594 policy::PolicyMap policy; | 591 policy::PolicyMap policy; |
595 policy.Set( | 592 policy.Set(policy::key::kOpenNetworkConfiguration, |
596 policy::key::kOpenNetworkConfiguration, policy::POLICY_LEVEL_MANDATORY, | 593 policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, |
597 policy::POLICY_SCOPE_USER, policy::POLICY_SOURCE_CLOUD, | 594 policy::POLICY_SOURCE_CLOUD, |
598 base::WrapUnique(new base::StringValue(user_policy_blob)), nullptr); | 595 base::WrapUnique(new base::Value(user_policy_blob)), nullptr); |
599 provider_.UpdateChromePolicy(policy); | 596 provider_.UpdateChromePolicy(policy); |
600 | 597 |
601 content::RunAllPendingInMessageLoop(); | 598 content::RunAllPendingInMessageLoop(); |
602 | 599 |
603 EXPECT_TRUE(RunNetworkingSubtest("getManagedProperties")) << message_; | 600 EXPECT_TRUE(RunNetworkingSubtest("getManagedProperties")) << message_; |
604 } | 601 } |
605 | 602 |
606 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, GetErrorState) { | 603 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, GetErrorState) { |
607 chromeos::NetworkHandler::Get()->network_state_handler()->SetLastErrorForTest( | 604 chromeos::NetworkHandler::Get()->network_state_handler()->SetLastErrorForTest( |
608 kWifi1ServicePath, "TestErrorState"); | 605 kWifi1ServicePath, "TestErrorState"); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 } | 726 } |
730 | 727 |
731 // Tests subset of networking API for the networking API alias - to verify that | 728 // Tests subset of networking API for the networking API alias - to verify that |
732 // using API methods and event does not cause access exceptions (due to | 729 // using API methods and event does not cause access exceptions (due to |
733 // missing permissions). | 730 // missing permissions). |
734 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, Alias) { | 731 IN_PROC_BROWSER_TEST_F(NetworkingPrivateChromeOSApiTest, Alias) { |
735 EXPECT_TRUE(RunPlatformAppTest("networking_private/alias")) << message_; | 732 EXPECT_TRUE(RunPlatformAppTest("networking_private/alias")) << message_; |
736 } | 733 } |
737 | 734 |
738 } // namespace | 735 } // namespace |
OLD | NEW |