-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusts the code to allow custom metrics for Device Defender in the C++ V2 SDK. Commit log: * Modified device_defender to free the string lists from memory * minor clang-format fix * A really minor format issue I missed when manually fixing clang-format issue * Added support for double numbers and double lists to Device Defender * Fixed clang format issues and removed no longer needed header import * Adjusted for numbers to always be doubles, removed unnecessary code, removed int returns on registering custom metrics * Fixed crash with empty custom metric arrays * Added some const back to functions to fix tests * Fixed clang-format issues and adjusted tests to use doubles instead of int64_t * Removed useless asserts in Device Defender tests * Fixed a few missed DeviceDefender tests * With all the fixes, I forgot a newline. Fixed * Code review adjustments: added removed consts back and changed increment back to prefix style * Slight modification after merge to use doubles with DeviceDefender again * Fixed metrics not sending correctly * Fixed clang-format issues, hopefully fixed memory leak in tests * Further clang-format fixes and memory leak fixes in test * Test to confirm the failure is related to the JSON module change * Memory leak narrowing in: Testing to make sure cleanup is not leaking memory * Memory leak narrowing: Added header back to test * Fixed memory leak issue in test * clang-format fix * Test heap overflow issue - remove validation to see if that is causing problem * Test heap overflow issue - comment out unused function * Test heap overflow issue - make byte cursor from payload * Test heap overflow issue - add back header validation and JSON parsing * Test heap overflow issue - just create JSON report and free it * Test heap overflow issue - send byte cursor directly * Test heap overflow issue - test adding JSON validation back to normal metric test * Test heap overflow issue - fix custom metric test and remove debug comments * Test heap overflow issue - fix compile issue
- Loading branch information
1 parent
1023bba
commit 9a5d6a8
Showing
4 changed files
with
123 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.