@@ -269,8 +269,7 @@ TEST(StringDictionaryProxy, GetOrAddTransient) {
269
269
270
270
// Now make proxy from dictionary
271
271
272
- StringDictionaryProxy string_dict_proxy (
273
- string_dict, 1 /* string_dict_id */ , string_dict->storageEntryCount ());
272
+ StringDictionaryProxy string_dict_proxy (string_dict, string_dict->storageEntryCount ());
274
273
275
274
{
276
275
// First iteration is identical to first of the StringDictionary GetOrAddBulk test,
@@ -350,8 +349,7 @@ static std::shared_ptr<StringDictionary> create_and_fill_dictionary() {
350
349
TEST (StringDictionaryProxy, GetOrAddTransientBulk) {
351
350
auto string_dict = create_and_fill_dictionary ();
352
351
353
- StringDictionaryProxy string_dict_proxy (
354
- string_dict, 1 /* string_dict_id */ , string_dict->storageEntryCount ());
352
+ StringDictionaryProxy string_dict_proxy (string_dict, string_dict->storageEntryCount ());
355
353
{
356
354
// First iteration is identical to first of the StringDictionary GetOrAddBulk test,
357
355
// and results should be the same
@@ -403,8 +401,7 @@ TEST(StringDictionaryProxy, GetOrAddTransientBulk) {
403
401
TEST (StringDictionaryProxy, GetTransientBulk) {
404
402
auto string_dict = create_and_fill_dictionary ();
405
403
406
- StringDictionaryProxy string_dict_proxy (
407
- string_dict, 1 /* string_dict_id */ , string_dict->storageEntryCount ());
404
+ StringDictionaryProxy string_dict_proxy (string_dict, string_dict->storageEntryCount ());
408
405
{
409
406
// First iteration is identical to first of the StryingDictionaryProxy
410
407
// GetOrAddTransientBulk test, and results should be the same
@@ -475,11 +472,9 @@ TEST(StringDictionaryProxy, BuildIntersectionTranslationMapToOtherProxy) {
475
472
// Should get back all INVALID_STR_IDs
476
473
std::shared_ptr<StringDictionaryProxy> source_string_dict_proxy =
477
474
std::make_shared<StringDictionaryProxy>(source_string_dict,
478
- 1 /* string_dict_id */ ,
479
475
source_string_dict->storageEntryCount ());
480
476
std::shared_ptr<StringDictionaryProxy> dest_string_dict_proxy =
481
477
std::make_shared<StringDictionaryProxy>(dest_string_dict,
482
- 2 /* string_dict_id */ ,
483
478
dest_string_dict->storageEntryCount ());
484
479
const auto str_proxy_translation_map =
485
480
source_string_dict_proxy->buildIntersectionTranslationMapToOtherProxy (
@@ -508,11 +503,9 @@ TEST(StringDictionaryProxy, BuildIntersectionTranslationMapToOtherProxy) {
508
503
509
504
std::shared_ptr<StringDictionaryProxy> source_string_dict_proxy =
510
505
std::make_shared<StringDictionaryProxy>(source_string_dict,
511
- 1 /* string_dict_id */ ,
512
506
source_string_dict->storageEntryCount ());
513
507
std::shared_ptr<StringDictionaryProxy> dest_string_dict_proxy =
514
508
std::make_shared<StringDictionaryProxy>(dest_string_dict,
515
- 2 /* string_dict_id */ ,
516
509
dest_string_dict->storageEntryCount ());
517
510
518
511
constexpr int32_t num_source_proxy_transient_ids{64 };
@@ -589,11 +582,9 @@ TEST(StringDictionaryProxy, BuildUnionTranslationMapToEmptyProxy) {
589
582
// destination proxy
590
583
std::shared_ptr<StringDictionaryProxy> source_string_dict_proxy =
591
584
std::make_shared<StringDictionaryProxy>(source_string_dict,
592
- 1 /* string_dict_id */ ,
593
585
source_string_dict->storageEntryCount ());
594
586
std::shared_ptr<StringDictionaryProxy> dest_string_dict_proxy =
595
587
std::make_shared<StringDictionaryProxy>(dest_string_dict,
596
- 2 /* string_dict_id */ ,
597
588
dest_string_dict->storageEntryCount ());
598
589
const auto str_proxy_translation_map =
599
590
source_string_dict_proxy->buildUnionTranslationMapToOtherProxy (
@@ -721,19 +712,17 @@ TEST(StringDictionaryProxy, BuildUnionTranslationMapToPartialOverlapProxy) {
721
712
dest_sd, num_dest_persisted_entries, dest_persisted_start_val);
722
713
ASSERT_EQ (dest_sd->storageEntryCount (), num_dest_persisted_entries);
723
714
724
- StringDictionaryProxy source_sdp (
725
- source_sd, 1 /* string_dict_id */ , source_sd->storageEntryCount ());
726
- StringDictionaryProxy dest_sdp (
727
- dest_sd, 2 /* string_dict_id */ , dest_sd->storageEntryCount ());
715
+ StringDictionaryProxy source_sdp (source_sd, source_sd->storageEntryCount ());
716
+ StringDictionaryProxy dest_sdp (dest_sd, dest_sd->storageEntryCount ());
728
717
const auto transient_source_strings = add_strings_numeric_range (
729
718
source_sdp, num_source_transient_entries, source_transient_start_val);
730
- ASSERT_EQ (source_sdp.getDictId (), 1 );
719
+ ASSERT_EQ (source_sdp.getDictionary ()-> getDictId (), 1 );
731
720
ASSERT_EQ (source_sdp.storageEntryCount (), num_source_persisted_entries);
732
721
ASSERT_EQ (source_sdp.transientEntryCount (), num_source_transient_entries);
733
722
734
723
const auto transient_dest_strings = add_strings_numeric_range (
735
724
dest_sdp, num_dest_transient_entries, dest_transient_start_val);
736
- ASSERT_EQ (dest_sdp.getDictId (), 2 );
725
+ ASSERT_EQ (dest_sdp.getDictionary ()-> getDictId (), 2 );
737
726
ASSERT_EQ (dest_sdp.storageEntryCount (), num_dest_persisted_entries);
738
727
ASSERT_EQ (dest_sdp.transientEntryCount (), num_dest_transient_entries);
739
728
0 commit comments