2020#include " absl/status/status.h"
2121#include " absl/time/time.h"
2222#include " common/memory.h"
23+ #include " common/type.h"
2324#include " common/value.h"
2425#include " internal/testing.h"
2526
@@ -228,8 +229,8 @@ TEST_P(ValueMatcherTest, OptionalValueIsEmptyNotOptional) {
228229}
229230
230231TEST_P (ValueMatcherTest, ListMatcherBasic) {
231- ASSERT_OK_AND_ASSIGN (auto builder, value_manager (). NewListValueBuilder (
232- value_manager ().GetDynListType ()));
232+ ASSERT_OK_AND_ASSIGN (auto builder,
233+ value_manager ().NewListValueBuilder ( cel::ListType ()));
233234
234235 ASSERT_OK (builder->Add (IntValue (42 )));
235236
@@ -242,8 +243,8 @@ TEST_P(ValueMatcherTest, ListMatcherBasic) {
242243}
243244
244245TEST_P (ValueMatcherTest, ListMatcherMatchesElements) {
245- ASSERT_OK_AND_ASSIGN (auto builder, value_manager (). NewListValueBuilder (
246- value_manager ().GetDynListType ()));
246+ ASSERT_OK_AND_ASSIGN (auto builder,
247+ value_manager ().NewListValueBuilder ( cel::ListType ()));
247248 ASSERT_OK (builder->Add (IntValue (42 )));
248249 ASSERT_OK (builder->Add (IntValue (1337 )));
249250 ASSERT_OK (builder->Add (IntValue (42 )));
@@ -256,8 +257,8 @@ TEST_P(ValueMatcherTest, ListMatcherMatchesElements) {
256257}
257258
258259TEST_P (ValueMatcherTest, MapMatcherBasic) {
259- ASSERT_OK_AND_ASSIGN (auto builder, value_manager (). NewMapValueBuilder (
260- value_manager ().GetDynDynMapType ()));
260+ ASSERT_OK_AND_ASSIGN (auto builder,
261+ value_manager ().NewMapValueBuilder ( cel::MapType ()));
261262
262263 ASSERT_OK (builder->Put (IntValue (42 ), IntValue (42 )));
263264
@@ -270,8 +271,8 @@ TEST_P(ValueMatcherTest, MapMatcherBasic) {
270271}
271272
272273TEST_P (ValueMatcherTest, MapMatcherMatchesElements) {
273- ASSERT_OK_AND_ASSIGN (auto builder, value_manager (). NewMapValueBuilder (
274- value_manager ().GetDynDynMapType ()));
274+ ASSERT_OK_AND_ASSIGN (auto builder,
275+ value_manager ().NewMapValueBuilder ( cel::MapType ()));
275276
276277 ASSERT_OK (builder->Put (IntValue (42 ), StringValue (" answer" )));
277278 ASSERT_OK (builder->Put (IntValue (1337 ), StringValue (" leet" )));
0 commit comments