class TestLoopFixture

Defined at line 31 of file ../../src/lib/testing/loop_fixture/test_loop_fixture.h

An extension of Test class which sets up a message loop for

the test.

Example:

class FooTest : public ::gtest::TestLoopFixture { /* ... */ };

TEST_F(FooTest, TestCase) {

// Initialize an object with the underlying loop's dispatcher.

Foo foo(dispatcher());

/* Call a method of |foo| that posts a delayed task. */

RunLoopFor(zx::sec(17));

/* Make assertions about the state of the test case, say about |foo|. */

}