My Elma Project
An event loop manager for embedded systems
Main Page
Classes
Files
File List
All
Classes
Functions
src
unit_test.cc
1
#include <iostream>
2
#include <vector>
3
#include <string>
4
#include <chrono>
5
#include "gtest/gtest.h"
6
#include "stopwatch.h"
7
8
namespace
{
9
10
using namespace
elma
;
11
using namespace
stopwatch
;
12
13
TEST(
StopWatch
,Construction) {
14
StopWatch
sw;
15
ASSERT_EQ(
"off"
, sw.current().name());
16
}
17
18
// More tests go here. You should aim to test every
19
// method of every object, either directly or indirectly,
20
// although testing user interfaces is notoriously
21
// difficult.
22
23
}
stopwatch
Definition:
off.h:6
stopwatch::StopWatch
A stop watch class, that inherits from StateMachine.
Definition:
stopwatch.h:16
elma
Generated on Thu Mar 14 2019 18:49:22 for My Elma Project by
1.8.8