Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed Dec 7, 2023
1 parent f9afc45 commit 8e9e842
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
19 changes: 11 additions & 8 deletions test/general/build_targets/package_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,19 @@ type = app
final File outputTpk = outputDir.childFile('package_id-1.0.0.tpk');
expect(outputTpk, exists);

final Directory tizenDir = projectDir.childDirectory('tizen');
final Directory ephemeralDir =
projectDir.childDirectory('tizen/flutter/ephemeral');
final Directory flutterAssetsDir =
tizenDir.childDirectory('res/flutter_assets');
final File engineBinary = tizenDir.childFile('lib/libflutter_engine.so');
ephemeralDir.childDirectory('res/flutter_assets');
final File engineBinary =
ephemeralDir.childFile('lib/libflutter_engine.so');
final File embedder =
tizenDir.childFile('lib/libflutter_tizen_common.so');
final File icuData = tizenDir.childFile('res/icudtl.dat');
final File aotSnapshot = tizenDir.childFile('lib/libapp.so');
final File pluginsLib = tizenDir.childFile('lib/libflutter_plugins.so');
final File pluginsUserLib = tizenDir.childFile('lib/libshared.so');
ephemeralDir.childFile('lib/libflutter_tizen_common.so');
final File icuData = ephemeralDir.childFile('res/icudtl.dat');
final File aotSnapshot = ephemeralDir.childFile('lib/libapp.so');
final File pluginsLib =
ephemeralDir.childFile('lib/libflutter_plugins.so');
final File pluginsUserLib = ephemeralDir.childFile('lib/libshared.so');

expect(flutterAssetsDir, exists);
expect(engineBinary, exists);
Expand Down
4 changes: 2 additions & 2 deletions test/general/tizen_doctor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void main() {

testUsingContext('Detects minimum required SDK version', () async {
final _FakeTizenSdk tizenSdk = _FakeTizenSdk(fileSystem);
tizenSdk.sdkVersion = '3.7';
tizenSdk.sdkVersion = '4.5';

final TizenValidator tizenValidator = TizenValidator(
tizenSdk: tizenSdk,
Expand Down Expand Up @@ -126,5 +126,5 @@ class _FakeTizenSdk extends TizenSdk {
);

@override
String? sdkVersion = '4.0';
String? sdkVersion = '5.0';
}
3 changes: 3 additions & 0 deletions test/general/tizen_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ void main() {
'test_profile',
'-r',
'/path/to/reference/project',
'-e',
'/path/to/extradir',
'--',
projectDir.path,
],
Expand All @@ -209,6 +211,7 @@ void main() {
await tizenSdk.package(
projectDir.path,
reference: '/path/to/reference/project',
extraDir: '/path/to/extradir',
sign: 'test_profile',
);

Expand Down

0 comments on commit 8e9e842

Please sign in to comment.