Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h

Issue 2105103002: Minor change to the uWeave packet generator to allow inheritance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
index fa70ccd24564319f94e893fef10978d8c7b0d218..52a3aff3f84285e11192147b94f01412f90f484d 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
+++ b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h
@@ -38,15 +38,15 @@ class BluetoothLowEnergyWeavePacketGenerator {
static Factory* factory_instance_;
};
- Packet CreateConnectionRequest();
- Packet CreateConnectionResponse();
- Packet CreateConnectionClose(ReasonForClose reason_for_close);
+ virtual Packet CreateConnectionRequest();
+ virtual Packet CreateConnectionResponse();
+ virtual Packet CreateConnectionClose(ReasonForClose reason_for_close);
// Packet size must be greater than or equal to 20.
- void SetMaxPacketSize(uint16_t size);
+ virtual void SetMaxPacketSize(uint16_t size);
// Will crash if message is empty.
- std::vector<Packet> EncodeDataMessage(std::string message);
+ virtual std::vector<Packet> EncodeDataMessage(std::string message);
protected:
BluetoothLowEnergyWeavePacketGenerator();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698