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
43d604e1
Unverified
Commit
43d604e1
authored
Feb 01, 2021
by
Jenn Magder
Committed by
GitHub
Feb 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace context FakeUsage with TestUsage (#75170)
parent
f4f33fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
43 deletions
+1
-43
context.dart
packages/flutter_tools/test/src/context.dart
+1
-43
No files found.
packages/flutter_tools/test/src/context.dart
View file @
43d604e1
...
...
@@ -126,7 +126,7 @@ void testUsingContext(
OperatingSystemUtils:
()
=>
FakeOperatingSystemUtils
(),
PersistentToolState:
()
=>
buildPersistentToolState
(
globals
.
fs
),
SimControl:
()
=>
MockSimControl
(),
Usage:
()
=>
Fake
Usage
(),
Usage:
()
=>
Test
Usage
(),
XcodeProjectInterpreter:
()
=>
FakeXcodeProjectInterpreter
(),
FileSystem:
()
=>
LocalFileSystemBlockingSetCurrentDirectory
(),
PlistParser:
()
=>
FakePlistParser
(),
...
...
@@ -332,48 +332,6 @@ class FakeOperatingSystemUtils implements OperatingSystemUtils {
class
MockIOSSimulatorUtils
extends
Mock
implements
IOSSimulatorUtils
{}
class
FakeUsage
implements
Usage
{
@override
bool
get
suppressAnalytics
=>
false
;
@override
set
suppressAnalytics
(
bool
value
)
{
}
@override
bool
get
enabled
=>
true
;
@override
set
enabled
(
bool
value
)
{
}
@override
String
get
clientId
=>
'00000000-0000-4000-0000-000000000000'
;
@override
void
sendCommand
(
String
command
,
{
Map
<
String
,
String
>
parameters
})
{
}
@override
void
sendEvent
(
String
category
,
String
parameter
,
{
String
label
,
int
value
,
Map
<
String
,
String
>
parameters
,
})
{
}
@override
void
sendTiming
(
String
category
,
String
variableName
,
Duration
duration
,
{
String
label
})
{
}
@override
void
sendException
(
dynamic
exception
)
{
}
@override
Stream
<
Map
<
String
,
dynamic
>>
get
onSend
=>
null
;
@override
Future
<
void
>
ensureAnalyticsSent
()
=>
Future
<
void
>.
value
();
@override
void
printWelcome
()
{
}
}
class
FakeXcodeProjectInterpreter
implements
XcodeProjectInterpreter
{
@override
bool
get
isInstalled
=>
true
;
...
...
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