Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-interfaces: Commit

hardware/interfaces


Commit MetaInfo

Révision6b6c02cd2d6eef0c366f33535fd4c14992b504ef (tree)
l'heure2017-10-17 16:24:00
Auteurandroid-build-team Robot <android-build-team-robot@goog...>
Commiterandroid-build-team Robot

Message de Log

Snap for 4399693 from 15e945976b2d8a7047c2a8b87fd639c97423cf51 to oc-mr1-release

Change-Id: Icf8e4608c71a03f30cf0a2ae4fd9524bfacc8c73

Change Summary

Modification

--- a/tetheroffload/control/1.0/vts/functional/VtsHalTetheroffloadControlV1_0TargetTest.cpp
+++ b/tetheroffload/control/1.0/vts/functional/VtsHalTetheroffloadControlV1_0TargetTest.cpp
@@ -231,7 +231,6 @@ TEST_F(OffloadControlHidlTestBase, AdditionalInitsWithoutStopReturnFalse) {
231231 initOffload(false);
232232 initOffload(false);
233233 initOffload(false);
234- stopOffload(ExpectBoolean::True); // balance out initOffload(true)
235234 }
236235
237236 // Check that calling stopOffload() without first having called initOffload() returns false.
@@ -244,6 +243,14 @@ TEST_F(OffloadControlHidlTestBase, MultipleStopsWithoutInitReturnFalse) {
244243 // Check that calling stopOffload() after a complete init/stop cycle returns false.
245244 TEST_F(OffloadControlHidlTestBase, AdditionalStopsWithInitReturnFalse) {
246245 initOffload(true);
246+ // Call setUpstreamParameters() so that "offload" can be reasonably said
247+ // to be both requested and operational.
248+ const hidl_string v4Addr("192.0.0.2");
249+ const hidl_string v4Gw("192.0.0.1");
250+ const vector<hidl_string> v6Gws{hidl_string("fe80::db8:1"), hidl_string("fe80::db8:2")};
251+ const Return<void> upstream =
252+ control->setUpstreamParameters("rmnet_data0", v4Addr, v4Gw, v6Gws, ASSERT_TRUE_CALLBACK);
253+ EXPECT_TRUE(upstream.isOk());
247254 stopOffload(ExpectBoolean::True); // balance out initOffload(true)
248255 stopOffload(ExpectBoolean::False);
249256 stopOffload(ExpectBoolean::False);
Afficher sur ancien navigateur de dépôt.