CYCAMORE
Loading...
Searching...
No Matches
build/cycamore/deploy_inst_tests.h
Go to the documentation of this file.
1
#ifndef CYCAMORE_SRC_DEPLOY_INST_TESTS_H_
2
#define CYCAMORE_SRC_DEPLOY_INST_TESTS_H_
3
4
#include <gtest/gtest.h>
5
6
#include "cyclus.h"
7
#include "timer.h"
8
#include "test_context.h"
9
#include "institution_tests.h"
10
#include "agent_tests.h"
11
#include "context.h"
12
#include "
deploy_inst.h
"
13
14
15
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
16
class
TestProducer
17
:
public
cyclus::Facility,
18
public
cyclus::toolkit::CommodityProducer {
19
public
:
20
TestProducer
(cyclus::Context* ctx);
21
~TestProducer
();
22
23
cyclus::Agent*
Clone
() {
24
TestProducer
* m =
new
TestProducer
(context());
25
m->
InitFrom
(
this
);
26
return
m;
27
}
28
29
void
InitFrom
(
TestProducer
* m) {
30
cyclus::Facility::InitFrom(m);
31
}
32
33
void
InitInv
(cyclus::Inventories& inv) {}
34
35
cyclus::Inventories
SnapshotInv
() {
return
cyclus::Inventories(); }
36
37
void
Tock
() {}
38
void
Tick
() {}
39
};
40
41
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
42
class
DeployInstTests
:
public
::testing::Test {
43
public
:
44
virtual
void
SetUp
();
45
virtual
void
TearDown
();
46
47
protected
:
48
cycamore::DeployInst
*
src_inst
;
49
TestProducer
*
producer
;
50
51
cyclus::toolkit::Commodity
commodity
;
52
double
capacity
;
53
cyclus::Context*
ctx_
;
54
cyclus::Timer
ti_
;
55
cyclus::Recorder
rec_
;
56
};
57
58
#endif
// CYCAMORE_SRC_DEPLOY_INST_TESTS_H_
deploy_inst.h
DeployInstTests
Definition
build/cycamore/deploy_inst_tests.h:42
DeployInstTests::producer
TestProducer * producer
Definition
build/cycamore/deploy_inst_tests.h:49
DeployInstTests::rec_
cyclus::Recorder rec_
Definition
build/cycamore/deploy_inst_tests.h:55
DeployInstTests::commodity
cyclus::toolkit::Commodity commodity
Definition
build/cycamore/deploy_inst_tests.h:51
DeployInstTests::ctx_
cyclus::Context * ctx_
Definition
build/cycamore/deploy_inst_tests.h:53
DeployInstTests::TearDown
virtual void TearDown()
Definition
build/cycamore/deploy_inst_tests.cc:20
DeployInstTests::ti_
cyclus::Timer ti_
Definition
build/cycamore/deploy_inst_tests.h:54
DeployInstTests::src_inst
cycamore::DeployInst * src_inst
Definition
build/cycamore/deploy_inst_tests.h:48
DeployInstTests::SetUp
virtual void SetUp()
Definition
build/cycamore/deploy_inst_tests.cc:9
DeployInstTests::capacity
double capacity
Definition
build/cycamore/deploy_inst_tests.h:52
TestProducer
Definition
build/cycamore/deploy_inst_tests.h:18
TestProducer::TestProducer
TestProducer(cyclus::Context *ctx)
Definition
build/cycamore/manager_inst_tests.cc:4
TestProducer::Clone
cyclus::Agent * Clone()
Definition
build/cycamore/deploy_inst_tests.h:23
TestProducer::InitFrom
void InitFrom(TestProducer *m)
Definition
build/cycamore/deploy_inst_tests.h:29
TestProducer::~TestProducer
~TestProducer()
Definition
build/cycamore/manager_inst_tests.cc:7
TestProducer::Tock
void Tock()
Definition
build/cycamore/deploy_inst_tests.h:37
TestProducer::InitInv
void InitInv(cyclus::Inventories &inv)
Definition
build/cycamore/deploy_inst_tests.h:33
TestProducer::SnapshotInv
cyclus::Inventories SnapshotInv()
Definition
build/cycamore/deploy_inst_tests.h:35
TestProducer::Tick
void Tick()
Definition
build/cycamore/deploy_inst_tests.h:38
cycamore::DeployInst
Definition
build/cycamore/deploy_inst.h:27
cycamore
deploy_inst_tests.h
Generated by
1.10.0