gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Typedefs | Functions | Variables
translation_gen.test.cc File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <initializer_list>
#include <list>
#include <memory>
#include <ostream>
#include <vector>
#include "base/cprintf.hh"
#include "base/gtest/logging.hh"
#include "mem/translation_gen.hh"

Go to the source code of this file.

Classes

class  gem5::FaultBase
 
class  TestTranslationGen
 

Namespaces

 gem5
 Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223.
 

Typedefs

using RangeList = std::list< TranslationGen::Range >
 

Functions

std::ostream & gem5::operator<< (std::ostream &os, const TranslationGen::Range &range)
 
 MATCHER (GenRangeEq, "")
 
 MATCHER (TransRangeEq, "")
 
 TEST (TranslationGen, Accessors)
 
 TEST (TranslationGen, BeginAndEnd)
 
 TEST (TranslationGen, SuccessfulTwoStep)
 
 TEST (TranslationGen, RetryOnFault)
 
 TEST (TranslationGen, RetryTwiceOnFault)
 
 TEST (TranslationGen, FaultAtStart)
 
 TEST (TranslationGen, FaultInMiddle)
 
 TEST (TranslationGen, VariablePageSize)
 
 TEST (TranslationGenDeathTest, IncrementEndIterator)
 

Variables

Fault gem5::dummyFault1 = std::make_shared<gem5::FaultBase>()
 
Fault gem5::dummyFault2 = std::make_shared<gem5::FaultBase>()
 

Typedef Documentation

◆ RangeList

Definition at line 68 of file translation_gen.test.cc.

Function Documentation

◆ MATCHER() [1/2]

MATCHER ( GenRangeEq  ,
""   
)

Definition at line 71 of file translation_gen.test.cc.

References expected.

◆ MATCHER() [2/2]

MATCHER ( TransRangeEq  ,
""   
)

Definition at line 87 of file translation_gen.test.cc.

References expected.

◆ TEST() [1/9]

TEST ( TranslationGen  ,
Accessors   
)

◆ TEST() [2/9]

TEST ( TranslationGen  ,
BeginAndEnd   
)

◆ TEST() [3/9]

TEST ( TranslationGen  ,
FaultAtStart   
)

Definition at line 250 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [4/9]

TEST ( TranslationGen  ,
FaultInMiddle   
)

Definition at line 280 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [5/9]

TEST ( TranslationGen  ,
RetryOnFault   
)

Definition at line 187 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [6/9]

TEST ( TranslationGen  ,
RetryTwiceOnFault   
)

Definition at line 217 of file translation_gen.test.cc.

References gem5::dummyFault1, gem5::dummyFault2, and gem5::NoFault.

◆ TEST() [7/9]

TEST ( TranslationGen  ,
SuccessfulTwoStep   
)

Definition at line 160 of file translation_gen.test.cc.

References gem5::NoFault.

◆ TEST() [8/9]

TEST ( TranslationGen  ,
VariablePageSize   
)

Definition at line 313 of file translation_gen.test.cc.

References gem5::NoFault.

◆ TEST() [9/9]

TEST ( TranslationGenDeathTest  ,
IncrementEndIterator   
)

Definition at line 343 of file translation_gen.test.cc.

References gem5::TranslationGen::end(), and gem5::gtestLogOutput.


Generated on Sun Jul 30 2023 01:57:05 for gem5 by doxygen 1.8.17