I do not think that there is a general opinion about what unit test is, so it's hard to say. Although some may argue that this should be a very small unit of code (for example, a method), which is quite restrictive, especially considering the fact that with a passing test refactor, you can put this code in several methods or even classes.
Roy Osherov 's definition is as follows:
A unit test is a quick, built-in memory, sequential, automatic and repeatable test of a functional unit of work in a system.
A unit of work is any functional scenario in a system that contains logic. it may be functions, or it may cover several classes and functions, and this provides the internal or commercial value of the system under test.
'Fast' and 'in-memory', IMO, most importantly, separating this from the integration test. If you do this, I think Google tests are really unit tests.
source share