Fixing issues in new logging
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "Dtypes.h"
|
||||
#include "MockSerial.h"
|
||||
#include "MeasurementSession.h"
|
||||
#include "SimpleMeasurementSession.h"
|
||||
#include "MockStorage.h"
|
||||
#include <unity.h>
|
||||
#include <vector>
|
||||
@@ -120,8 +120,8 @@ void testSessionChunkSerialization()
|
||||
|
||||
|
||||
void testSession() {
|
||||
const uint32_t SESSION_SIZE = 128;
|
||||
typedef MeasurementSession<uint16_t, MockStorageReader, MockStorageWriter, SESSION_SIZE> MockSession;
|
||||
const uint32_t SESSION_SIZE = 1024;
|
||||
using MockSession = SimpleMeasurementSession<uint16_t, SESSION_SIZE>;
|
||||
|
||||
const uint32_t startTime = 194842;
|
||||
const uint_t fillSize = SESSION_SIZE * 4 + 7;
|
||||
@@ -149,7 +149,7 @@ void testSession() {
|
||||
|
||||
void testPartialSessionSerialization() {
|
||||
const uint32_t SESSION_SIZE = 1024*8 - 16 * sizeof(uint32_t);
|
||||
typedef MeasurementSession<uint16_t, MockStorageReader, MockStorageWriter, SESSION_SIZE> MockSession;
|
||||
using MockSession = SimpleMeasurementSession<uint16_t, SESSION_SIZE>;
|
||||
|
||||
const uint32_t startTime = 194842;
|
||||
const uint_t fillSize = 4937 + 81;
|
||||
@@ -191,7 +191,7 @@ void testPartialSessionSerialization() {
|
||||
|
||||
void testPartialSessionSerializationEmptyArray() {
|
||||
const uint32_t SESSION_SIZE = 1024*8 - 16 * sizeof(uint32_t);
|
||||
typedef MeasurementSession<uint16_t, MockStorageReader, MockStorageWriter, SESSION_SIZE> MockSession;
|
||||
using MockSession = SimpleMeasurementSession<uint16_t, SESSION_SIZE>;
|
||||
|
||||
const uint32_t startTime = 194842;
|
||||
const uint_t fillSize = 4937 + 81;
|
||||
|
||||
Reference in New Issue
Block a user