Lines Matching full:test_delegate
945 TestDelegate test_delegate;
946 gatt_server_->SetDelegate(&test_delegate);
974 EXPECT_EQ(0, test_delegate.char_read_req().count);
975 EXPECT_EQ(0, test_delegate.desc_read_req().count);
980 EXPECT_EQ(0, test_delegate.char_read_req().count);
981 EXPECT_EQ(0, test_delegate.desc_read_req().count);
986 EXPECT_EQ(0, test_delegate.char_read_req().count);
987 EXPECT_EQ(0, test_delegate.desc_read_req().count);
992 EXPECT_EQ(1, test_delegate.char_read_req().count);
993 EXPECT_EQ(kTestAddress0, test_delegate.char_read_req().device_address);
994 EXPECT_EQ(kReqId0, test_delegate.char_read_req().id);
995 EXPECT_EQ(0, test_delegate.char_read_req().offset);
996 EXPECT_FALSE(test_delegate.char_read_req().is_long);
997 EXPECT_TRUE(test_char_id_ == test_delegate.char_read_req().gatt_id);
998 EXPECT_EQ(0, test_delegate.desc_read_req().count);
1002 EXPECT_EQ(1, test_delegate.char_read_req().count);
1003 EXPECT_EQ(1, test_delegate.desc_read_req().count);
1004 EXPECT_EQ(kTestAddress0, test_delegate.desc_read_req().device_address);
1005 EXPECT_EQ(kReqId1, test_delegate.desc_read_req().id);
1006 EXPECT_EQ(2, test_delegate.desc_read_req().offset);
1007 EXPECT_TRUE(test_delegate.desc_read_req().is_long);
1008 EXPECT_TRUE(test_desc_id_ == test_delegate.desc_read_req().gatt_id);
1015 EXPECT_EQ(1, test_delegate.char_read_req().count);
1016 EXPECT_EQ(1, test_delegate.desc_read_req().count);
1070 TestDelegate test_delegate;
1071 gatt_server_->SetDelegate(&test_delegate);
1099 EXPECT_EQ(0, test_delegate.char_write_req().count);
1100 EXPECT_EQ(0, test_delegate.desc_write_req().count);
1106 EXPECT_EQ(0, test_delegate.char_write_req().count);
1107 EXPECT_EQ(0, test_delegate.desc_write_req().count);
1113 EXPECT_EQ(0, test_delegate.char_write_req().count);
1114 EXPECT_EQ(0, test_delegate.desc_write_req().count);
1120 EXPECT_EQ(1, test_delegate.char_write_req().count);
1121 EXPECT_EQ(kTestAddress0, test_delegate.char_write_req().device_address);
1122 EXPECT_EQ(kReqId0, test_delegate.char_write_req().id);
1123 EXPECT_EQ(0, test_delegate.char_write_req().offset);
1124 EXPECT_EQ(true, test_delegate.char_write_req().need_rsp);
1125 EXPECT_EQ(false, test_delegate.char_write_req().is_exec);
1126 EXPECT_EQ(kTestValue, test_delegate.char_write_req().write_value);
1127 EXPECT_TRUE(test_char_id_ == test_delegate.char_write_req().gatt_id);
1128 EXPECT_EQ(0, test_delegate.desc_write_req().count);
1133 EXPECT_EQ(1, test_delegate.char_write_req().count);
1134 EXPECT_EQ(1, test_delegate.desc_write_req().count);
1135 EXPECT_EQ(kTestAddress0, test_delegate.desc_write_req().device_address);
1136 EXPECT_EQ(kReqId1, test_delegate.desc_write_req().id);
1137 EXPECT_EQ(2, test_delegate.desc_write_req().offset);
1138 EXPECT_EQ(true, test_delegate.desc_write_req().need_rsp);
1139 EXPECT_EQ(false, test_delegate.desc_write_req().is_exec);
1140 EXPECT_EQ(kTestValue, test_delegate.desc_write_req().write_value);
1141 EXPECT_TRUE(test_desc_id_ == test_delegate.desc_write_req().gatt_id);
1150 EXPECT_EQ(1, test_delegate.char_write_req().count);
1151 EXPECT_EQ(1, test_delegate.desc_write_req().count);
1198 EXPECT_EQ(false, test_delegate.char_write_req().need_rsp);