CYCAMORE
Loading...
Searching...
No Matches
src/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// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
16class TestProducer
17 : public cyclus::Facility,
18 public cyclus::toolkit::CommodityProducer {
19 public:
20 TestProducer(cyclus::Context* ctx);
22
23 cyclus::Agent* Clone() {
24 TestProducer* m = new TestProducer(context());
25 m->InitFrom(this);
26 return m;
27 }
28
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// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
42class DeployInstTests : public ::testing::Test {
43 public:
44 virtual void SetUp();
45 virtual void TearDown();
46
47 protected:
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_
virtual void SetUp()
cyclus::toolkit::Commodity commodity
cycamore::DeployInst * src_inst
virtual void TearDown()
TestProducer(cyclus::Context *ctx)
cyclus::Agent * Clone()
void InitFrom(TestProducer *m)
void InitInv(cyclus::Inventories &inv)
cyclus::Inventories SnapshotInv()