Home
last modified time | relevance | path

Searched refs:bookObserver3 (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_observer_test.cpp115 shared_ptr<BookObserver> bookObserver3 = make_shared<BookObserver>(); in HWTEST_F() local
119 bookList.AddObserver(bookObserver3); in HWTEST_F()
124 EXPECT_EQ(bookObserver3->GetBooksCount(), 1); in HWTEST_F()
130 EXPECT_EQ(bookObserver3->GetBooksCount(), 0); in HWTEST_F()
137 EXPECT_EQ(bookObserver3->GetBooksCount(), 2); in HWTEST_F()
147 shared_ptr<BookObserver> bookObserver3 = make_shared<BookObserver>(); in HWTEST_F() local
151 bookList.AddObserver(bookObserver3); in HWTEST_F()
156 EXPECT_EQ(bookObserver3->GetBooksCount(), 1); in HWTEST_F()
162 EXPECT_EQ(bookObserver3->GetBooksCount(), 1); in HWTEST_F()
/commonlibrary/c_utils/base/test/benchmarktest/observer_benchmark_test/
H A Dobserver_benchmark_test.cpp123 shared_ptr<BookObserver>& bookObserver3, benchmark::State& state) in AddObservers()
127 bookList.AddObserver(bookObserver3); in AddObservers()
134 AssertEqual(bookObserver3->GetBooksCount(), EXPECTED_COUNT_ONE, in AddObservers()
135 "bookObserver3->GetBooksCount() did not equal EXPECTED_COUNT_ONE as expected.", state); in AddObservers()
145 shared_ptr<BookObserver> bookObserver3 = make_shared<BookObserver>(); in BENCHMARK_F() local
146 AddObservers(bookList, bookObserver1, bookObserver2, bookObserver3, state); in BENCHMARK_F()
154 AssertEqual(bookObserver3->GetBooksCount(), EXPECTED_COUNT_ZERO, in BENCHMARK_F()
155 "bookObserver3->GetBooksCount() did not equal EXPECTED_COUNT_ZERO as expected.", state); in BENCHMARK_F()
164 AssertEqual(bookObserver3->GetBooksCount(), EXPECTED_COUNT_TWO, in BENCHMARK_F()
165 "bookObserver3 in BENCHMARK_F()
122 AddObservers(BookList& bookList, shared_ptr<BookObserver>& bookObserver1, shared_ptr<BookObserver>& bookObserver2, shared_ptr<BookObserver>& bookObserver3, benchmark::State& state) AddObservers() argument
177 shared_ptr<BookObserver> bookObserver3 = make_shared<BookObserver>(); BENCHMARK_F() local
[all...]

Completed in 1 milliseconds