@@ -43,8 +43,9 @@ TEST(BrushTipTest, Stringify) {
4343 {
4444 BrushBehavior{{
4545 BrushBehavior::SourceNode{
46- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
47- .source_value_range = {0 , 250 },
46+ .source =
47+ BrushBehavior::Source::kTimeOfInputInSeconds ,
48+ .source_value_range = {0 , 0.25 },
4849 },
4950 BrushBehavior::TargetNode{
5051 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -64,8 +65,9 @@ TEST(BrushTipTest, Stringify) {
6465 },
6566 }),
6667 " BrushTip{scale=<1.25, 0.75>, corner_rounding=0, "
67- " behaviors={BrushBehavior{nodes={SourceNode{source=kTimeOfInputInMillis, "
68- " source_value_range={0, 250}}, TargetNode{target=kWidthMultiplier, "
68+ " behaviors={BrushBehavior{nodes={SourceNode{source=kTimeOfInputInSeconds,"
69+ " "
70+ " source_value_range={0, 0.25}}, TargetNode{target=kWidthMultiplier, "
6971 " target_modifier_range={1.5, 2}}}}, "
7072 " BrushBehavior{nodes={SourceNode{source=kNormalizedPressure, "
7173 " source_value_range={0, 1}}, TargetNode{target=kPinchOffset, "
@@ -84,8 +86,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
8486 .behaviors = {
8587 BrushBehavior{{
8688 BrushBehavior::SourceNode{
87- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
88- .source_value_range = {0 , 250 },
89+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
90+ .source_value_range = {0 , 0.25 },
8991 },
9092 BrushBehavior::TargetNode{
9193 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -107,8 +109,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
107109 .behaviors = {
108110 BrushBehavior{{
109111 BrushBehavior::SourceNode{
110- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
111- .source_value_range = {0 , 250 },
112+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
113+ .source_value_range = {0 , 0.25 },
112114 },
113115 BrushBehavior::TargetNode{
114116 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -127,8 +129,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
127129 .particle_gap_duration = Duration32::Seconds (0.5 ),
128130 .behaviors = {BrushBehavior{{
129131 BrushBehavior::SourceNode{
130- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
131- .source_value_range = {0 , 250 },
132+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
133+ .source_value_range = {0 , 0.25 },
132134 },
133135 BrushBehavior::TargetNode{
134136 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -148,8 +150,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
148150 .behaviors = {
149151 BrushBehavior{{
150152 BrushBehavior::SourceNode{
151- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
152- .source_value_range = {0 , 250 },
153+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
154+ .source_value_range = {0 , 0.25 },
153155 },
154156 BrushBehavior::TargetNode{
155157 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -170,8 +172,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
170172 .behaviors = {
171173 BrushBehavior{{
172174 BrushBehavior::SourceNode{
173- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
174- .source_value_range = {0 , 250 },
175+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
176+ .source_value_range = {0 , 0.25 },
175177 },
176178 BrushBehavior::TargetNode{
177179 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -192,8 +194,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
192194 .behaviors = {
193195 BrushBehavior{{
194196 BrushBehavior::SourceNode{
195- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
196- .source_value_range = {0 , 250 },
197+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
198+ .source_value_range = {0 , 0.25 },
197199 },
198200 BrushBehavior::TargetNode{
199201 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -214,8 +216,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
214216 .behaviors = {
215217 BrushBehavior{{
216218 BrushBehavior::SourceNode{
217- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
218- .source_value_range = {0 , 250 },
219+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
220+ .source_value_range = {0 , 0.25 },
219221 },
220222 BrushBehavior::TargetNode{
221223 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -236,8 +238,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
236238 .behaviors = {
237239 BrushBehavior{{
238240 BrushBehavior::SourceNode{
239- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
240- .source_value_range = {0 , 250 },
241+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
242+ .source_value_range = {0 , 0.25 },
241243 },
242244 BrushBehavior::TargetNode{
243245 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -258,8 +260,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
258260 .behaviors = {
259261 BrushBehavior{{
260262 BrushBehavior::SourceNode{
261- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
262- .source_value_range = {0 , 250 },
263+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
264+ .source_value_range = {0 , 0.25 },
263265 },
264266 BrushBehavior::TargetNode{
265267 .target = BrushBehavior::Target::kWidthMultiplier ,
@@ -281,8 +283,8 @@ TEST(BrushTipTest, EqualAndNotEqual) {
281283 .behaviors = {
282284 BrushBehavior{{
283285 BrushBehavior::SourceNode{
284- .source = BrushBehavior::Source::kTimeOfInputInMillis ,
285- .source_value_range = {0 , 250 },
286+ .source = BrushBehavior::Source::kTimeOfInputInSeconds ,
287+ .source_value_range = {0 , 0.25 },
286288 },
287289 BrushBehavior::TargetNode{
288290 .target = BrushBehavior::Target::kWidthMultiplier ,
0 commit comments