Peter Johnson
|
beb92e6cbf
|
NetworkConnection: Ignore duplicate Start() calls.
|
2015-07-14 23:15:30 -07:00 |
|
Peter Johnson
|
4d3fb3c497
|
Storage: Use unique_ptr for instance.
|
2015-07-14 23:15:08 -07:00 |
|
Peter Johnson
|
dbd0c98306
|
Message: implement MsgType constructor.
|
2015-07-14 23:09:56 -07:00 |
|
Peter Johnson
|
53fb702512
|
ConcurrentQueue: Add empty() function.
Change-Id: I563c0343f70a5e4577a6387914d821728cbdd007
|
2015-07-13 22:56:58 -07:00 |
|
Peter Johnson
|
e640708245
|
Start implementing network connectivity.
Change-Id: I82875bfd1c3a086033d22de636d4fb43455ebac3
|
2015-07-13 22:46:41 -07:00 |
|
Peter Johnson
|
8fdaf61ef1
|
Use typedef for GetEntryFunc function pointer.
Change-Id: I58d4be7783656eb712cb32cd17075b4f35886693
|
2015-07-13 22:45:35 -07:00 |
|
Peter Johnson
|
a5713252dc
|
Message::Read(): restructure to read directly into Message.
Change-Id: Ibed3d6d334130c165543fd20987ac5d54b0696eb
|
2015-07-12 23:35:23 -07:00 |
|
Peter Johnson
|
f5ec5e180d
|
Message: don't explicitly convert StringValue.
Change-Id: I2ab104d19e49c1b6d3384134587182ce9b8980f8
|
2015-07-12 23:14:48 -07:00 |
|
Peter Johnson
|
27e0f22c04
|
StringValue: Implictly convert/assign from StringRef.
Change-Id: I87f1e60a3e87db66c6efda824f9e66e919f0a5ea
|
2015-07-12 23:13:43 -07:00 |
|
Peter Johnson
|
2016bcb37a
|
Replace MessageReader and MessageWriter with Message.
Change-Id: I4b23d5a1e0e39dc2487f252a0947f11328e33090
|
2015-07-12 11:24:34 -07:00 |
|
Peter Johnson
|
1760d32019
|
MessageReader: Rename Run() to ReadMessage().
Change-Id: Id6312478e331c4d7f7832e214a57ecf0338e0fcb
|
2015-07-11 09:33:35 -07:00 |
|
Peter Johnson
|
9808c6e62b
|
Remove extra whitespace.
Change-Id: Ibbfe4f4e1b73f9dcf58cb3ae1f34ffa661ef5de0
|
2015-07-11 09:33:35 -07:00 |
|
Peter Johnson
|
071b278b71
|
MessageReader: Use rvalue refs and std::move for handlers.
Change-Id: Iedba512d64ef2674c18a88b9fb720b2a6346b902
|
2015-07-11 09:33:35 -07:00 |
|
Peter Johnson
|
f4673f3123
|
WireDecoder::Read(): Use const char instead of plain char.
Change-Id: I14932ccd174b70fa3f90676c66ac0907e6086238
MessageReader: Use StringRef for callbacks.
|
2015-07-11 09:33:35 -07:00 |
|
Peter Johnson
|
8ee4c36e02
|
MessageReader/MessageWriter: bring in proto_rev().
Change-Id: I7b4ce8a33fe480eb78fb36935de5480bdd1f6f13
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
0f876d1989
|
Use StringRef instead of NT_String in various places.
Change-Id: Ibd11e0e1c3157eb8647211797ef8b4aa63f58eb8
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
eecf0deeec
|
Add WireDecoder test and finish WireEncoder test.
Change-Id: I0d2b3421df55f8f986678b694bbd5481e8fc6e6b
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
6aa32e8752
|
WireDecoder: Add overloads for StringValue and Value.
Change-Id: Idb41fd16fec8efc8b984c1a9b4d225829d16e344
StringValue: Add comparison operators.
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
a55b6565b8
|
WireDecoder ReadDouble: Use ref cast.
Change-Id: I47f23709960d13c005916b5d41d81339302adda5
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
c1c0c8d418
|
Optimize Write16/32/Double a bit.
Change-Id: I3d09a9d1b0b33da401312b3389234f7680da6f97
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
1634773529
|
Finish WireEncoder tests and fix a bug.
Change-Id: Iddb6003cf2050aebbda4650a5596342288432fde
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
547e2ad72b
|
leb128 test: naming consistency
Change-Id: Ib37433110781d87f8736c82d4b8249d580b5a1dd
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
ca90648118
|
Add copyrights and header guards.
Change-Id: I1e4c22a1626095750b6ffa8e0edd5e078ef221ec
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
958fbaa819
|
ValueTest / StringValueTest: Make conversion function static.
Change-Id: Ia7411fd58cfd7ee9225a7c7f90534567e7ae02ba
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
fa19a54ab7
|
Separate ValueTest and StringValueTest into headers.
Change-Id: If326e6943a11f271ef939dc815a45ba0b4ee271c
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
c9c1b7e5d8
|
Rename test files.
Change-Id: If7a2894f21b86bf9e4036e3069a2e5602ca932b0
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
4d5e5c82d4
|
Start WireEncoder testing.
Change-Id: I0e4161f5b3cab167d3c3d650588671be8a1b78b3
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
9bd4a5ecc3
|
Add proto_rev accessors to WireEncoder and WireDecoder.
Change-Id: I401a0fbc675379c4d5b1dbcc42cbefe0311304f1
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
09d6619a58
|
Add LEB128 test.
Change-Id: Iaeb2d818226a281a905cb69ef12725e504c3a03d
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
e7ba40dcfd
|
ReadUleb128: Take const buf.
Change-Id: Idd4637790938485a291a20eab4e14f5112c04c8a
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
ae42eee8e1
|
More Base64 fixes (correct decode return value).
Change-Id: Ic8f5eb7efd39e1d155a458aa41e430232bee7c7d
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
1e9b9b9a3e
|
Base64: Fix a little differently.
Change-Id: I394a1c99e1ecf87b4e236cf0aced5f9429364ace
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
1225d3ef75
|
Slight whitespace fix.
Change-Id: I752a000775efefd45cf5c5be0a084e855f68e13f
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
407ded6b8c
|
Use ASSERT_EQ with correct order of arguments.
Change-Id: Ieed4703283ae222df3aee8adb07ca1e65e863c62
|
2015-07-11 09:33:34 -07:00 |
|
Peter Johnson
|
c7b5266f9a
|
Add Base64 tests and fix a couple of bugs found.
Change-Id: I9762fe018be78cf38aa506026e78139e2479cd98
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
5a0fccc9cf
|
Add unit tests for StringValue and Value.
Add unit test framework to CMakeLists.txt.
Fix a couple of bugs found by unit tests.
Change-Id: I2092a7f0570fae0f19f9e083c4837ccefcc4ca1a
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
b66fb68f29
|
Finish LoadPersistent().
Change-Id: I5c4c439dc3d2585f2edae74f78c14f826b091186
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
cb30bb5d70
|
Rename base64 to Base64.
Change-Id: I0dea9f77ca898ab1a278a0b0163418f96f823725
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
40ebb9a844
|
C++-ify base64 functions.
Change-Id: I5cf7a8971b18b7a2700fe8d616733e32fa1e3282
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
b7a87bb6f9
|
Make StringValue noncopyable.
Change-Id: I5b02cf988aaa15c467fa62c96c951d2891bc43db
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
e38cce46ad
|
Add missing llvm headers.
Change-Id: I2e913ef8289b2336a74690195085ca9f6e14d94e
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
f6deafee22
|
Add type-safe wrapper around NT_Value and NT_String.
Change-Id: Ib7ef5a6de9c8c7a1f5f6432083d1fb38328438dc
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
8d6a0786c8
|
Move all C api functions to ntcore.cpp.
Change-Id: I17b4f5fec30ecd684cf04af2bbd6b7346bfcd683
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
9ee3070667
|
Storage: Make entries private, add accessors.
Use range-based for in SavePersistent.
Change-Id: If43ed97379114b3bf8a5e95da99103791cd09d4d
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
05e084364a
|
Start implementing LoadPersistent.
Switch to using fstream instead of stdio.
Change-Id: I600a8748a0b3dcf24740d63cc296df000abc388d
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
69e91244f4
|
Rename make_StringRef to MakeStringRef.
Change-Id: I18ca471c6e31f79956bcab9d4405afc355238a8f
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
e37a9d81f1
|
Cleanups and commenting.
Change-Id: I491a68af8614198af450942cd378c9486f27d338
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
95d0736bb6
|
More coding guidelines name changes, and use "using".
Change-Id: I48a898d13623749a55c469ba558155cd1467b4ce
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
de4ba1aa35
|
Fix up naming of Base64 and Leb128 functions.
Change-Id: I80a2493d822b59311ba0d7bd68b5ccf0e3b29e6a
|
2015-07-11 09:33:33 -07:00 |
|
Peter Johnson
|
d7ca3343bc
|
File renames.
Change-Id: I3fa88f94593941a25f65eaabfcbbca2428613e6c
|
2015-07-11 09:33:33 -07:00 |
|