Skip to content

Commit 7515d17

Browse files
committed
fix ConvertTest.java to use PlatformColor
1 parent f45c208 commit 7515d17

File tree

1 file changed

+8
-6
lines changed
  • packages/google_maps_flutter/google_maps_flutter_android/android/src/test/java/io/flutter/plugins/googlemaps

1 file changed

+8
-6
lines changed

packages/google_maps_flutter/google_maps_flutter_android/android/src/test/java/io/flutter/plugins/googlemaps/ConvertTest.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,10 @@ public void GetBitmapFromBytesThrowsErrorIfInvalidImageData() {
335335
public void GetPinConfigFromPlatformPinConfig_GlyphColor() {
336336
Messages.PlatformBitmapPinConfig platformBitmap =
337337
new Messages.PlatformBitmapPinConfig.Builder()
338-
.setBackgroundColor(0x00FFFFL)
339-
.setBorderColor(0xFF00FFL)
340-
.setGlyphColor(0x112233L)
338+
.setBackgroundColor(
339+
new Messages.PlatformColor.Builder().setArgbValue(0x00FFFFL).build())
340+
.setBorderColor(new Messages.PlatformColor.Builder().setArgbValue(0xFF00FFL).build())
341+
.setGlyphColor(new Messages.PlatformColor.Builder().setArgbValue(0x112233L).build())
341342
.build();
342343

343344
PinConfig pinConfig =
@@ -353,7 +354,7 @@ public void GetPinConfigFromPlatformPinConfig_Glyph() {
353354
Messages.PlatformBitmapPinConfig platformBitmap =
354355
new Messages.PlatformBitmapPinConfig.Builder()
355356
.setGlyphText("Hi")
356-
.setGlyphTextColor(0xFFFFFFL)
357+
.setGlyphTextColor(new Messages.PlatformColor.Builder().setArgbValue(0xFFFFFFL).build())
357358
.build();
358359
PinConfig pinConfig =
359360
getPinConfigFromPlatformPinConfig(
@@ -375,8 +376,9 @@ public void GetPinConfigFromPlatformPinConfig_GlyphBitmap() {
375376
new Messages.PlatformBitmap.Builder().setBitmap(bytesBitmap).build();
376377
Messages.PlatformBitmapPinConfig platformBitmap =
377378
new Messages.PlatformBitmapPinConfig.Builder()
378-
.setBackgroundColor(0xFFFFFFL)
379-
.setBorderColor(0x000000L)
379+
.setBackgroundColor(
380+
new Messages.PlatformColor.Builder().setArgbValue(0xFFFFFFL).build())
381+
.setBorderColor(new Messages.PlatformColor.Builder().setArgbValue(0x000000L).build())
380382
.setGlyphBitmap(icon)
381383
.build();
382384
when(bitmapDescriptorFactoryWrapper.fromBitmap(any())).thenReturn(mockBitmapDescriptor);

0 commit comments

Comments
 (0)