github.com/status-im/status-go@v1.1.0/images/test_data.go (about) 1 package images 2 3 // Test data that would typically only exist in a test file, used for exporting sample data outside the package. 4 var ( 5 testJpegBytes = []byte{0xff, 0xd8, 0xff, 0xdb, 0x00, 0x84, 0x00, 0x50, 0x37, 0x3c, 0x46, 0x3c, 0x32, 0x50} 6 testPngBytes = []byte{0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48} 7 testGifBytes = []byte{0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x00, 0x01, 0x00, 0x01, 0x84, 0x1f, 0x00, 0xff} 8 testWebpBytes = []byte{0x52, 0x49, 0x46, 0x46, 0x90, 0x49, 0x00, 0x00, 0x57, 0x45, 0x42, 0x50, 0x56, 0x50} 9 testAacBytes = []byte{0xff, 0xf1, 0x50, 0x80, 0x1c, 0x3f, 0xfc, 0xda, 0x00, 0x4c, 0x61, 0x76, 0x63, 0x35} 10 testLogoBytes, _ = Asset("_assets/tests/qr/status.png") 11 ) 12 13 func SampleIdentityImages() []IdentityImage { 14 return []IdentityImage{ 15 { 16 Name: SmallDimName, 17 Payload: testJpegBytes, 18 Width: 80, 19 Height: 80, 20 FileSize: 256, 21 ResizeTarget: 80, 22 Clock: 0, 23 }, 24 { 25 Name: LargeDimName, 26 Payload: testPngBytes, 27 Width: 240, 28 Height: 300, 29 FileSize: 1024, 30 ResizeTarget: 240, 31 Clock: 0, 32 }, 33 } 34 } 35 36 func SampleIdentityImageForQRCode() []IdentityImage { 37 return []IdentityImage{ 38 { 39 Name: LargeDimName, 40 Payload: testLogoBytes, 41 Width: 240, 42 Height: 300, 43 FileSize: 1024, 44 ResizeTarget: 240, 45 Clock: 0, 46 }, 47 } 48 }