OSDN Git Service

L2CAP: Add a packet test for G frame
authorHansong Zhang <hsz@google.com>
Fri, 6 Sep 2019 23:01:25 +0000 (16:01 -0700)
committerHansong Zhang <hsz@google.com>
Fri, 6 Sep 2019 23:02:37 +0000 (23:02 +0000)
Test: bluetooth_test_gd
Change-Id: I2d5bca8935a83b8c3db086eba4ecfdc4e16afba9

gd/l2cap/l2cap_packet_test.cc

index 8d57aba..1ad36a3 100644 (file)
@@ -55,5 +55,8 @@ DEFINE_AND_INSTANTIATE_StandardInformationFrameWithFcsReflectionTest(i_frame_wit
 
 std::vector<uint8_t> rr_frame_with_fcs = {0x04, 0x00, 0x40, 0x00, 0x01, 0x01, 0xD4, 0x14};
 DEFINE_AND_INSTANTIATE_StandardSupervisoryFrameWithFcsReflectionTest(rr_frame_with_fcs);
+
+std::vector<uint8_t> g_frame = {0x03, 0x00, 0x02, 0x00, 0x01, 0x02, 0x03};
+DEFINE_AND_INSTANTIATE_GroupFrameReflectionTest(g_frame);
 }  // namespace l2cap
 }  // namespace bluetooth