Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f712fecd
Unverified
Commit
f712fecd
authored
Mar 25, 2021
by
Jenn Magder
Committed by
GitHub
Mar 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate visual_studio to null safety (#78942)
parent
c49cd271
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
46 deletions
+64
-46
visual_studio.dart
packages/flutter_tools/lib/src/windows/visual_studio.dart
+52
-46
visual_studio_test.dart
..._tools/test/general.shard/windows/visual_studio_test.dart
+12
-0
No files found.
packages/flutter_tools/lib/src/windows/visual_studio.dart
View file @
f712fecd
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/general.shard/windows/visual_studio_test.dart
View file @
f712fecd
...
...
@@ -342,6 +342,18 @@ void setNoViableToolchainInstallation(
void
main
(
)
{
group
(
'Visual Studio'
,
()
{
testWithoutContext
(
'isInstalled throws when PROGRAMFILES(X86) env not set'
,
()
{
final
VisualStudio
visualStudio
=
VisualStudio
(
logger:
BufferLogger
.
test
(),
fileSystem:
MemoryFileSystem
.
test
(
style:
FileSystemStyle
.
windows
),
platform:
FakePlatform
(
operatingSystem:
'windows'
),
processManager:
FakeProcessManager
.
any
(),
);
expect
(()
=>
visualStudio
.
isInstalled
,
throwsToolExit
(
message:
'%PROGRAMFILES(X86)% environment variable not found'
));
});
testWithoutContext
(
'isInstalled and cmakePath correct when vswhere is missing'
,
()
{
final
FileSystem
fileSystem
=
MemoryFileSystem
.
test
(
style:
FileSystemStyle
.
windows
);
const
Exception
exception
=
ProcessException
(
'vswhere'
,
<
String
>[]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment