Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
63861464
E
engine
项目概览
liujiuri
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
63861464
编写于
7月 31, 2017
作者:
C
Chinmay Garde
提交者:
GitHub
7月 31, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update buildroot to account for stricter warning flags. (#3939)
上级
ca19ab0a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
25 deletion
+28
-25
DEPS
DEPS
+1
-1
fml/message_loop_unittests.cc
fml/message_loop_unittests.cc
+1
-1
fml/platform/android/jni_util.cc
fml/platform/android/jni_util.cc
+1
-1
shell/gpu/gpu_surface_gl.cc
shell/gpu/gpu_surface_gl.cc
+1
-1
shell/platform/android/android_surface_gl.h
shell/platform/android/android_surface_gl.h
+1
-1
shell/platform/darwin/ios/framework/Source/flutter_standard_codec_unittest.mm
...n/ios/framework/Source/flutter_standard_codec_unittest.mm
+23
-20
未找到文件。
DEPS
浏览文件 @
63861464
...
...
@@ -75,7 +75,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
b0b836db790abff26695a944224a4934480f2f48
',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
abb5036600abb462690f9f0091ec73b2d65fc337
',
# Fuchsia compatibility
#
...
...
fml/message_loop_unittests.cc
浏览文件 @
63861464
...
...
@@ -244,7 +244,7 @@ class CustomTaskObserver : public fml::TaskObserver {
~
CustomTaskObserver
()
override
=
default
;
void
DidProcessTask
()
{
void
DidProcessTask
()
override
{
if
(
lambda_
)
{
lambda_
();
}
...
...
fml/platform/android/jni_util.cc
浏览文件 @
63861464
...
...
@@ -85,7 +85,7 @@ std::vector<std::string> StringArrayToVector(JNIEnv* env, jobjectArray array) {
}
out
.
resize
(
length
);
for
(
size_t
i
=
0
;
i
<
length
;
++
i
)
{
for
(
jsize
i
=
0
;
i
<
length
;
++
i
)
{
ScopedJavaLocalRef
<
jstring
>
java_string
(
env
,
static_cast
<
jstring
>
(
env
->
GetObjectArrayElement
(
array
,
i
)));
out
[
i
]
=
JavaStringToString
(
env
,
java_string
.
obj
());
...
...
shell/gpu/gpu_surface_gl.cc
浏览文件 @
63861464
...
...
@@ -83,7 +83,7 @@ static sk_sp<SkSurface> WrapOnscreenSurface(GrContext* context,
intptr_t
fbo
,
bool
supports_srgb
)
{
const
GrGLFramebufferInfo
framebuffer_info
=
{
.
fFBOID
=
fbo
,
.
fFBOID
=
static_cast
<
GrGLuint
>
(
fbo
)
,
};
const
GrPixelConfig
pixel_config
=
...
...
shell/platform/android/android_surface_gl.h
浏览文件 @
63861464
...
...
@@ -22,7 +22,7 @@ class AndroidSurfaceGL : public GPUSurfaceGLDelegate, public AndroidSurface {
~
AndroidSurfaceGL
()
override
;
bool
IsValid
()
const
;
bool
IsValid
()
const
override
;
bool
IsOffscreenContextValid
()
const
;
...
...
shell/platform/darwin/ios/framework/Source/flutter_standard_codec_unittest.mm
浏览文件 @
63861464
...
...
@@ -34,34 +34,34 @@ TEST(FlutterStandardCodec, CanEncodeAndDecodeNil) {
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeNSNull
)
{
char
bytes
[
1
]
=
{
0x00
};
uint8_t
bytes
[
1
]
=
{
0x00
};
checkEncodeDecode
([
NSNull
null
],
[
NSData
dataWithBytes
:
bytes
length
:
1
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeYes
)
{
char
bytes
[
1
]
=
{
0x01
};
uint8_t
bytes
[
1
]
=
{
0x01
};
checkEncodeDecode
(
@YES
,
[
NSData
dataWithBytes
:
bytes
length
:
1
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeNo
)
{
char
bytes
[
1
]
=
{
0x02
};
uint8_t
bytes
[
1
]
=
{
0x02
};
checkEncodeDecode
(
@NO
,
[
NSData
dataWithBytes
:
bytes
length
:
1
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeUInt8
)
{
char
bytes
[
5
]
=
{
0x03
,
0xfe
,
0x00
,
0x00
,
0x00
};
uint8_t
bytes
[
5
]
=
{
0x03
,
0xfe
,
0x00
,
0x00
,
0x00
};
UInt8
value
=
0xfe
;
checkEncodeDecode
(
@
(
value
),
[
NSData
dataWithBytes
:
bytes
length
:
5
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeUInt16
)
{
char
bytes
[
5
]
=
{
0x03
,
0xdc
,
0xfe
,
0x00
,
0x00
};
uint8_t
bytes
[
5
]
=
{
0x03
,
0xdc
,
0xfe
,
0x00
,
0x00
};
UInt16
value
=
0xfedc
;
checkEncodeDecode
(
@
(
value
),
[
NSData
dataWithBytes
:
bytes
length
:
5
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeUInt32
)
{
char
bytes
[
9
]
=
{
0x04
,
0x09
,
0xba
,
0xdc
,
0xfe
,
0x00
,
0x00
,
0x00
,
0x00
};
uint8_t
bytes
[
9
]
=
{
0x04
,
0x09
,
0xba
,
0xdc
,
0xfe
,
0x00
,
0x00
,
0x00
,
0x00
};
UInt32
value
=
0xfedcba09
;
checkEncodeDecode
(
@
(
value
),
[
NSData
dataWithBytes
:
bytes
length
:
9
]);
}
...
...
@@ -75,24 +75,24 @@ TEST(FlutterStandardCodec, CanEncodeAndDecodeUInt64AsHexString) {
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeSInt8
)
{
char
bytes
[
5
]
=
{
0x03
,
0xfe
,
0xff
,
0xff
,
0xff
};
uint8_t
bytes
[
5
]
=
{
0x03
,
0xfe
,
0xff
,
0xff
,
0xff
};
SInt8
value
=
0xfe
;
checkEncodeDecode
(
@
(
value
),
[
NSData
dataWithBytes
:
bytes
length
:
5
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeSInt16
)
{
char
bytes
[
5
]
=
{
0x03
,
0xdc
,
0xfe
,
0xff
,
0xff
};
uint8_t
bytes
[
5
]
=
{
0x03
,
0xdc
,
0xfe
,
0xff
,
0xff
};
SInt16
value
=
0xfedc
;
checkEncodeDecode
(
@
(
value
),
[
NSData
dataWithBytes
:
bytes
length
:
5
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeSInt32
)
{
char
bytes
[
5
]
=
{
0x03
,
0x78
,
0x56
,
0x34
,
0x12
};
uint8_t
bytes
[
5
]
=
{
0x03
,
0x78
,
0x56
,
0x34
,
0x12
};
checkEncodeDecode
(
@
(
0x12345678
),
[
NSData
dataWithBytes
:
bytes
length
:
5
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeSInt64
)
{
char
bytes
[
9
]
=
{
0x04
,
0xef
,
0xcd
,
0xab
,
0x90
,
0x78
,
0x56
,
0x34
,
0x12
};
uint8_t
bytes
[
9
]
=
{
0x04
,
0xef
,
0xcd
,
0xab
,
0x90
,
0x78
,
0x56
,
0x34
,
0x12
};
checkEncodeDecode
(
@
(
0x1234567890abcdef
),
[
NSData
dataWithBytes
:
bytes
length
:
9
]);
}
...
...
@@ -103,27 +103,30 @@ TEST(FlutterStandardCodec, CanEncodeAndDecodeBigInteger) {
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeFloat32
)
{
char
bytes
[
16
]
=
{
0x06
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x60
,
0xfb
,
0x21
,
0x09
,
0x40
};
uint8_t
bytes
[
16
]
=
{
0x06
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x60
,
0xfb
,
0x21
,
0x09
,
0x40
};
checkEncodeDecode
(
@3.1415927f
,
[
NSData
dataWithBytes
:
bytes
length
:
16
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeFloat64
)
{
char
bytes
[
16
]
=
{
0x06
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x18
,
0x2d
,
0x44
,
0x54
,
0xfb
,
0x21
,
0x09
,
0x40
};
uint8_t
bytes
[
16
]
=
{
0x06
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x18
,
0x2d
,
0x44
,
0x54
,
0xfb
,
0x21
,
0x09
,
0x40
};
checkEncodeDecode
(
@3.14159265358979311599796346854
,
[
NSData
dataWithBytes
:
bytes
length
:
16
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeString
)
{
char
bytes
[
13
]
=
{
0x07
,
0x0b
,
0x68
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x20
,
0x77
,
0x6f
,
0x72
,
0x6c
,
0x64
};
uint8_t
bytes
[
13
]
=
{
0x07
,
0x0b
,
0x68
,
0x65
,
0x6c
,
0x6c
,
0x6f
,
0x20
,
0x77
,
0x6f
,
0x72
,
0x6c
,
0x64
};
checkEncodeDecode
(
@"hello world"
,
[
NSData
dataWithBytes
:
bytes
length
:
13
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeStringWithNonAsciiCodePoint
)
{
char
bytes
[
7
]
=
{
0x07
,
0x05
,
0x68
,
0xe2
,
0x98
,
0xba
,
0x77
};
uint8_t
bytes
[
7
]
=
{
0x07
,
0x05
,
0x68
,
0xe2
,
0x98
,
0xba
,
0x77
};
checkEncodeDecode
(
@"h\u263Aw"
,
[
NSData
dataWithBytes
:
bytes
length
:
7
]);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeStringWithNonBMPCodePoint
)
{
char
bytes
[
8
]
=
{
0x07
,
0x06
,
0x68
,
0xf0
,
0x9f
,
0x98
,
0x82
,
0x77
};
uint8_t
bytes
[
8
]
=
{
0x07
,
0x06
,
0x68
,
0xf0
,
0x9f
,
0x98
,
0x82
,
0x77
};
checkEncodeDecode
(
@"h\U0001F602w"
,
[
NSData
dataWithBytes
:
bytes
length
:
8
]);
}
...
...
@@ -142,29 +145,29 @@ TEST(FlutterStandardCodec, CanEncodeAndDecodeDictionary) {
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeByteArray
)
{
char
bytes
[
4
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
};
uint8_t
bytes
[
4
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
};
NSData
*
data
=
[
NSData
dataWithBytes
:
bytes
length
:
4
];
FlutterStandardTypedData
*
value
=
[
FlutterStandardTypedData
typedDataWithBytes
:
data
];
checkEncodeDecode
(
value
);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeInt32Array
)
{
char
bytes
[
8
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
uint8_t
bytes
[
8
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
NSData
*
data
=
[
NSData
dataWithBytes
:
bytes
length
:
8
];
FlutterStandardTypedData
*
value
=
[
FlutterStandardTypedData
typedDataWithInt32
:
data
];
checkEncodeDecode
(
value
);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeInt64Array
)
{
char
bytes
[
8
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
uint8_t
bytes
[
8
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
NSData
*
data
=
[
NSData
dataWithBytes
:
bytes
length
:
8
];
FlutterStandardTypedData
*
value
=
[
FlutterStandardTypedData
typedDataWithInt64
:
data
];
checkEncodeDecode
(
value
);
}
TEST
(
FlutterStandardCodec
,
CanEncodeAndDecodeFloat64Array
)
{
char
bytes
[
16
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
,
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
uint8_t
bytes
[
16
]
=
{
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
,
0xBA
,
0x5E
,
0xBA
,
0x11
,
0xff
,
0xff
,
0xff
,
0xff
};
NSData
*
data
=
[
NSData
dataWithBytes
:
bytes
length
:
16
];
FlutterStandardTypedData
*
value
=
[
FlutterStandardTypedData
typedDataWithFloat64
:
data
];
checkEncodeDecode
(
value
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录