A Discrete-Event Network Simulator
API
Classes | Macros | Variables
buffer-test.cc File Reference
#include "ns3/buffer.h"
#include "ns3/random-variable-stream.h"
#include "ns3/double.h"
#include "ns3/test.h"

Go to the source code of this file.

Classes

class  BufferTest
 Buffer unit tests. More...
 
class  BufferTestSuite
 Buffer TestSuite. More...
 

Macros

#define ENSURE_WRITTEN_BYTES(buffer, n, ...)
 

Variables

static BufferTestSuite g_bufferTestSuite
 Static variable for test initialization. More...
 

Macro Definition Documentation

◆ ENSURE_WRITTEN_BYTES

#define ENSURE_WRITTEN_BYTES (   buffer,
  n,
  ... 
)
Value:
{ \
uint8_t bytes[] = { __VA_ARGS__}; \
EnsureWrittenBytes (buffer, n, bytes, __FILE__, __LINE__); \
}

Definition at line 101 of file buffer-test.cc.

Referenced by BufferTest::DoRun().

Variable Documentation

◆ g_bufferTestSuite

BufferTestSuite g_bufferTestSuite
static

Static variable for test initialization.

Definition at line 399 of file buffer-test.cc.