Lines Matching refs:default_value
60 ::std::string default_value = "default"; in TEST()
61 field.UnsafeSetDefault(&default_value); in TEST()
62 EXPECT_EQ(string("default"), field.Get(&default_value)); in TEST()
63 field.Set(&default_value, WrapString("Test short"), NULL); in TEST()
64 EXPECT_EQ(string("Test short"), field.Get(&default_value)); in TEST()
65 field.Set(&default_value, WrapString("Test long long long long value"), NULL); in TEST()
66 EXPECT_EQ(string("Test long long long long value"), field.Get(&default_value)); in TEST()
67 field.Set(&default_value, string(""), NULL); in TEST()
68 field.Destroy(&default_value, NULL); in TEST()
71 field2.UnsafeSetDefault(&default_value); in TEST()
72 ::std::string* mut = field2.Mutable(&default_value, NULL); in TEST()
73 EXPECT_EQ(mut, field2.Mutable(&default_value, NULL)); in TEST()
74 EXPECT_EQ(mut, &field2.Get(&default_value)); in TEST()
75 EXPECT_NE(&default_value, mut); in TEST()
78 EXPECT_EQ(string("Test long long long long value"), field2.Get(&default_value)); in TEST()
79 field2.Destroy(&default_value, NULL); in TEST()
85 ::std::string default_value = "default"; in TEST()
86 field.UnsafeSetDefault(&default_value); in TEST()
87 EXPECT_EQ(string("default"), field.Get(&default_value)); in TEST()
88 field.Set(&default_value, WrapString("Test short"), &arena); in TEST()
89 EXPECT_EQ(string("Test short"), field.Get(&default_value)); in TEST()
90 field.Set(&default_value, WrapString("Test long long long long value"), &arena); in TEST()
92 field.Get(&default_value)); in TEST()
93 field.Set(&default_value, string(""), &arena); in TEST()
94 field.Destroy(&default_value, &arena); in TEST()
97 field2.UnsafeSetDefault(&default_value); in TEST()
98 ::std::string* mut = field2.Mutable(&default_value, &arena); in TEST()
99 EXPECT_EQ(mut, field2.Mutable(&default_value, &arena)); in TEST()
100 EXPECT_EQ(mut, &field2.Get(&default_value)); in TEST()
101 EXPECT_NE(&default_value, mut); in TEST()
105 field2.Get(&default_value)); in TEST()
106 field2.Destroy(&default_value, &arena); in TEST()