forked from microsoft/vstest
/
Constants.cs
69 lines (57 loc) · 2.67 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.VisualStudio.TestPlatform.Common
{
/// <summary>
/// Defines the defaults used across different components.
/// </summary>
public static class TestPlatformDefaults
{
/// <summary>
/// string in the vstest.console.exe.config that specifies the bound on no of jobs in the job queue.
/// </summary>
public const string MaxNumberOfEventsLoggerEventQueueCanHold = "MaxNumberOfEventsLoggerEventQueueCanHold";
/// <summary>
/// Default bound on the job queue.
/// </summary>
public const int DefaultMaxNumberOfEventsLoggerEventQueueCanHold = 500;
/// <summary>
/// string in the vstest.console.exe.config that specifies the size bound on job queue.
/// </summary>
public const string MaxBytesLoggerEventQueueCanHold = "MaxBytesLoggerEventQueueCanHold";
/// <summary>
/// string in the rocksteady.exe.config that specifies whether or not we should try to keep memory usage by queue bounded.
/// </summary>
public const string EnableBoundsOnLoggerEventQueue = "EnableBoundsOnLoggerEventQueue";
/// <summary>
/// Default bound on the total size of all objects in the job queue. (25MB)
/// </summary>
public const int DefaultMaxBytesLoggerEventQueueCanHold = 25000000;
/// <summary>
/// Default value of the boolean that determines whether or not job queue should be bounded.
/// </summary>
public const bool DefaultEnableBoundsOnLoggerEventQueue = true;
}
/// <summary>
/// Defines the constants used across different components.
/// </summary>
public static class TestPlatformConstants
{
/// <summary>
/// Pattern used to find the test adapters library using String.EndWith
/// </summary>
public const string TestAdapterEndsWithPattern = @"TestAdapter.dll";
/// <summary>
/// Pattern used to find the test loggers library using String.EndWith
/// </summary>
public const string TestLoggerEndsWithPattern = @"TestLogger.dll";
/// <summary>
/// Pattern used to find the data collectors library using String.EndWith
/// </summary>
public const string DataCollectorEndsWithPattern = @"Collector.dll";
/// <summary>
/// Pattern used to find the run time providers library using String.EndWith
/// </summary>
public const string RunTimeEndsWithPattern = @"RuntimeProvider.dll";
}
}