Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 975c174

Browse files
author
Kaushik Iska
committed
fix formatting
1 parent f9c6cc0 commit 975c174

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

lib/ui/versions.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include "flutter/common/version/version.h"
65
#include "flutter/lib/ui/versions.h"
6+
#include "flutter/common/version/version.h"
77
#include "third_party/tonic/converter/dart_converter.h"
88
#include "third_party/tonic/dart_library_natives.h"
99

@@ -19,14 +19,13 @@ namespace blink {
1919
void GetVersions(Dart_NativeArguments args) {
2020
const std::vector<std::string> versions_list = {
2121
GetDartVersion(), GetSkiaVersion(), GetFlutterEngineVersion()};
22-
const auto& dart_val = DartConverter<std::vector<std::string>>::ToDart(versions_list);
22+
const auto& dart_val =
23+
DartConverter<std::vector<std::string>>::ToDart(versions_list);
2324
Dart_SetReturnValue(args, dart_val);
2425
}
2526

2627
void Versions::RegisterNatives(tonic::DartLibraryNatives* natives) {
27-
natives->Register({
28-
{"Versions_getVersions", GetVersions, 1, true}
29-
});
28+
natives->Register({{"Versions_getVersions", GetVersions, 1, true}});
3029
}
3130

3231
} // namespace blink

lib/ui/versions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class Versions final {
1616
static void RegisterNatives(tonic::DartLibraryNatives* natives);
1717
};
1818

19-
} // namespace blink
19+
} // namespace blink
2020

2121
#endif // FLUTTER_LIB_UI_VERSIONS_H_

shell/common/switches.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ void PrintUsage(const std::string& executable_name) {
4949
<< std::endl;
5050
std::cerr << "Skia Version: " << blink::GetSkiaVersion() << std::endl;
5151

52-
std::cerr << "Dart Version: " << blink::GetDartVersion() << std::endl << std::endl;
52+
std::cerr << "Dart Version: " << blink::GetDartVersion() << std::endl
53+
<< std::endl;
5354

5455
std::cerr << "Available Flags:" << std::endl;
5556

testing/dart/versions_test.dart

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,18 @@ bool _isNotEmpty(String s) {
1818
}
1919

2020
void main() {
21-
2221
test('dartVersion should not be empty', () {
23-
final String dartVersion = versions.dartVersion;
24-
expect(_isNotEmpty(dartVersion), equals(true));
25-
});
26-
27-
test('skiaVersion should not be empty', () {
28-
final String skiaVersion = versions.skiaVersion;
29-
expect(_isNotEmpty(skiaVersion), equals(true));
30-
});
31-
32-
test('flutterEngineVersion should not be empty', () {
33-
final String flutterEngineVersion = versions.flutterEngineVersion;
34-
expect(_isNotEmpty(flutterEngineVersion), equals(true));
35-
});
36-
22+
final String dartVersion = versions.dartVersion;
23+
expect(_isNotEmpty(dartVersion), equals(true));
24+
});
25+
26+
test('skiaVersion should not be empty', () {
27+
final String skiaVersion = versions.skiaVersion;
28+
expect(_isNotEmpty(skiaVersion), equals(true));
29+
});
30+
31+
test('flutterEngineVersion should not be empty', () {
32+
final String flutterEngineVersion = versions.flutterEngineVersion;
33+
expect(_isNotEmpty(flutterEngineVersion), equals(true));
34+
});
3735
}

0 commit comments

Comments
 (0)