| Index: generated/googleapis/test/clouddebugger/v2_test.dart
|
| diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart
|
| index 1fba7440ca818e3ccc6f4a19b7c796e9cf8a2fb5..abcac23f1da65273ec2d86d7abcec90bde2e27f4 100644
|
| --- a/generated/googleapis/test/clouddebugger/v2_test.dart
|
| +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
|
| @@ -72,53 +72,66 @@ checkAliasContext(api.AliasContext o) {
|
| buildCounterAliasContext--;
|
| }
|
|
|
| -buildUnnamed1116() {
|
| +buildUnnamed1375() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1116(core.List<api.Variable> o) {
|
| +checkUnnamed1375(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| }
|
|
|
| -buildUnnamed1117() {
|
| +buildUnnamed1376() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1117(core.List<core.String> o) {
|
| +checkUnnamed1376(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1118() {
|
| +buildUnnamed1377() {
|
| + var o = new core.Map<core.String, core.String>();
|
| + o["x"] = "foo";
|
| + o["y"] = "foo";
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1377(core.Map<core.String, core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o["x"], unittest.equals('foo'));
|
| + unittest.expect(o["y"], unittest.equals('foo'));
|
| +}
|
| +
|
| +buildUnnamed1378() {
|
| var o = new core.List<api.StackFrame>();
|
| o.add(buildStackFrame());
|
| o.add(buildStackFrame());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1118(core.List<api.StackFrame> o) {
|
| +checkUnnamed1378(core.List<api.StackFrame> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkStackFrame(o[0]);
|
| checkStackFrame(o[1]);
|
| }
|
|
|
| -buildUnnamed1119() {
|
| +buildUnnamed1379() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1119(core.List<api.Variable> o) {
|
| +checkUnnamed1379(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| @@ -132,18 +145,19 @@ buildBreakpoint() {
|
| o.action = "foo";
|
| o.condition = "foo";
|
| o.createTime = "foo";
|
| - o.evaluatedExpressions = buildUnnamed1116();
|
| - o.expressions = buildUnnamed1117();
|
| + o.evaluatedExpressions = buildUnnamed1375();
|
| + o.expressions = buildUnnamed1376();
|
| o.finalTime = "foo";
|
| o.id = "foo";
|
| o.isFinalState = true;
|
| + o.labels = buildUnnamed1377();
|
| o.location = buildSourceLocation();
|
| o.logLevel = "foo";
|
| o.logMessageFormat = "foo";
|
| - o.stackFrames = buildUnnamed1118();
|
| + o.stackFrames = buildUnnamed1378();
|
| o.status = buildStatusMessage();
|
| o.userEmail = "foo";
|
| - o.variableTable = buildUnnamed1119();
|
| + o.variableTable = buildUnnamed1379();
|
| }
|
| buildCounterBreakpoint--;
|
| return o;
|
| @@ -155,18 +169,19 @@ checkBreakpoint(api.Breakpoint o) {
|
| unittest.expect(o.action, unittest.equals('foo'));
|
| unittest.expect(o.condition, unittest.equals('foo'));
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| - checkUnnamed1116(o.evaluatedExpressions);
|
| - checkUnnamed1117(o.expressions);
|
| + checkUnnamed1375(o.evaluatedExpressions);
|
| + checkUnnamed1376(o.expressions);
|
| unittest.expect(o.finalTime, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.isFinalState, unittest.isTrue);
|
| + checkUnnamed1377(o.labels);
|
| checkSourceLocation(o.location);
|
| unittest.expect(o.logLevel, unittest.equals('foo'));
|
| unittest.expect(o.logMessageFormat, unittest.equals('foo'));
|
| - checkUnnamed1118(o.stackFrames);
|
| + checkUnnamed1378(o.stackFrames);
|
| checkStatusMessage(o.status);
|
| unittest.expect(o.userEmail, unittest.equals('foo'));
|
| - checkUnnamed1119(o.variableTable);
|
| + checkUnnamed1379(o.variableTable);
|
| }
|
| buildCounterBreakpoint--;
|
| }
|
| @@ -238,40 +253,40 @@ checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) {
|
| buildCounterCloudWorkspaceSourceContext--;
|
| }
|
|
|
| -buildUnnamed1120() {
|
| +buildUnnamed1380() {
|
| var o = new core.List<api.ExtendedSourceContext>();
|
| o.add(buildExtendedSourceContext());
|
| o.add(buildExtendedSourceContext());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1120(core.List<api.ExtendedSourceContext> o) {
|
| +checkUnnamed1380(core.List<api.ExtendedSourceContext> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExtendedSourceContext(o[0]);
|
| checkExtendedSourceContext(o[1]);
|
| }
|
|
|
| -buildUnnamed1121() {
|
| +buildUnnamed1381() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1121(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1381(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1122() {
|
| +buildUnnamed1382() {
|
| var o = new core.List<api.SourceContext>();
|
| o.add(buildSourceContext());
|
| o.add(buildSourceContext());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1122(core.List<api.SourceContext> o) {
|
| +checkUnnamed1382(core.List<api.SourceContext> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSourceContext(o[0]);
|
| checkSourceContext(o[1]);
|
| @@ -284,13 +299,13 @@ buildDebuggee() {
|
| if (buildCounterDebuggee < 3) {
|
| o.agentVersion = "foo";
|
| o.description = "foo";
|
| - o.extSourceContexts = buildUnnamed1120();
|
| + o.extSourceContexts = buildUnnamed1380();
|
| o.id = "foo";
|
| o.isDisabled = true;
|
| o.isInactive = true;
|
| - o.labels = buildUnnamed1121();
|
| + o.labels = buildUnnamed1381();
|
| o.project = "foo";
|
| - o.sourceContexts = buildUnnamed1122();
|
| + o.sourceContexts = buildUnnamed1382();
|
| o.status = buildStatusMessage();
|
| o.uniquifier = "foo";
|
| }
|
| @@ -303,13 +318,13 @@ checkDebuggee(api.Debuggee o) {
|
| if (buildCounterDebuggee < 3) {
|
| unittest.expect(o.agentVersion, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed1120(o.extSourceContexts);
|
| + checkUnnamed1380(o.extSourceContexts);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.isDisabled, unittest.isTrue);
|
| unittest.expect(o.isInactive, unittest.isTrue);
|
| - checkUnnamed1121(o.labels);
|
| + checkUnnamed1381(o.labels);
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| - checkUnnamed1122(o.sourceContexts);
|
| + checkUnnamed1382(o.sourceContexts);
|
| checkStatusMessage(o.status);
|
| unittest.expect(o.uniquifier, unittest.equals('foo'));
|
| }
|
| @@ -333,14 +348,14 @@ checkEmpty(api.Empty o) {
|
| buildCounterEmpty--;
|
| }
|
|
|
| -buildUnnamed1123() {
|
| +buildUnnamed1383() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1123(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1383(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -352,7 +367,7 @@ buildExtendedSourceContext() {
|
| buildCounterExtendedSourceContext++;
|
| if (buildCounterExtendedSourceContext < 3) {
|
| o.context = buildSourceContext();
|
| - o.labels = buildUnnamed1123();
|
| + o.labels = buildUnnamed1383();
|
| }
|
| buildCounterExtendedSourceContext--;
|
| return o;
|
| @@ -362,19 +377,19 @@ checkExtendedSourceContext(api.ExtendedSourceContext o) {
|
| buildCounterExtendedSourceContext++;
|
| if (buildCounterExtendedSourceContext < 3) {
|
| checkSourceContext(o.context);
|
| - checkUnnamed1123(o.labels);
|
| + checkUnnamed1383(o.labels);
|
| }
|
| buildCounterExtendedSourceContext--;
|
| }
|
|
|
| -buildUnnamed1124() {
|
| +buildUnnamed1384() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1124(core.List<core.String> o) {
|
| +checkUnnamed1384(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -386,7 +401,7 @@ buildFormatMessage() {
|
| buildCounterFormatMessage++;
|
| if (buildCounterFormatMessage < 3) {
|
| o.format = "foo";
|
| - o.parameters = buildUnnamed1124();
|
| + o.parameters = buildUnnamed1384();
|
| }
|
| buildCounterFormatMessage--;
|
| return o;
|
| @@ -396,7 +411,7 @@ checkFormatMessage(api.FormatMessage o) {
|
| buildCounterFormatMessage++;
|
| if (buildCounterFormatMessage < 3) {
|
| unittest.expect(o.format, unittest.equals('foo'));
|
| - checkUnnamed1124(o.parameters);
|
| + checkUnnamed1384(o.parameters);
|
| }
|
| buildCounterFormatMessage--;
|
| }
|
| @@ -468,14 +483,14 @@ checkGitSourceContext(api.GitSourceContext o) {
|
| buildCounterGitSourceContext--;
|
| }
|
|
|
| -buildUnnamed1125() {
|
| +buildUnnamed1385() {
|
| var o = new core.List<api.Breakpoint>();
|
| o.add(buildBreakpoint());
|
| o.add(buildBreakpoint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1125(core.List<api.Breakpoint> o) {
|
| +checkUnnamed1385(core.List<api.Breakpoint> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBreakpoint(o[0]);
|
| checkBreakpoint(o[1]);
|
| @@ -486,7 +501,7 @@ buildListActiveBreakpointsResponse() {
|
| var o = new api.ListActiveBreakpointsResponse();
|
| buildCounterListActiveBreakpointsResponse++;
|
| if (buildCounterListActiveBreakpointsResponse < 3) {
|
| - o.breakpoints = buildUnnamed1125();
|
| + o.breakpoints = buildUnnamed1385();
|
| o.nextWaitToken = "foo";
|
| o.waitExpired = true;
|
| }
|
| @@ -497,21 +512,21 @@ buildListActiveBreakpointsResponse() {
|
| checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) {
|
| buildCounterListActiveBreakpointsResponse++;
|
| if (buildCounterListActiveBreakpointsResponse < 3) {
|
| - checkUnnamed1125(o.breakpoints);
|
| + checkUnnamed1385(o.breakpoints);
|
| unittest.expect(o.nextWaitToken, unittest.equals('foo'));
|
| unittest.expect(o.waitExpired, unittest.isTrue);
|
| }
|
| buildCounterListActiveBreakpointsResponse--;
|
| }
|
|
|
| -buildUnnamed1126() {
|
| +buildUnnamed1386() {
|
| var o = new core.List<api.Breakpoint>();
|
| o.add(buildBreakpoint());
|
| o.add(buildBreakpoint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1126(core.List<api.Breakpoint> o) {
|
| +checkUnnamed1386(core.List<api.Breakpoint> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBreakpoint(o[0]);
|
| checkBreakpoint(o[1]);
|
| @@ -522,7 +537,7 @@ buildListBreakpointsResponse() {
|
| var o = new api.ListBreakpointsResponse();
|
| buildCounterListBreakpointsResponse++;
|
| if (buildCounterListBreakpointsResponse < 3) {
|
| - o.breakpoints = buildUnnamed1126();
|
| + o.breakpoints = buildUnnamed1386();
|
| o.nextWaitToken = "foo";
|
| }
|
| buildCounterListBreakpointsResponse--;
|
| @@ -532,20 +547,20 @@ buildListBreakpointsResponse() {
|
| checkListBreakpointsResponse(api.ListBreakpointsResponse o) {
|
| buildCounterListBreakpointsResponse++;
|
| if (buildCounterListBreakpointsResponse < 3) {
|
| - checkUnnamed1126(o.breakpoints);
|
| + checkUnnamed1386(o.breakpoints);
|
| unittest.expect(o.nextWaitToken, unittest.equals('foo'));
|
| }
|
| buildCounterListBreakpointsResponse--;
|
| }
|
|
|
| -buildUnnamed1127() {
|
| +buildUnnamed1387() {
|
| var o = new core.List<api.Debuggee>();
|
| o.add(buildDebuggee());
|
| o.add(buildDebuggee());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1127(core.List<api.Debuggee> o) {
|
| +checkUnnamed1387(core.List<api.Debuggee> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDebuggee(o[0]);
|
| checkDebuggee(o[1]);
|
| @@ -556,7 +571,7 @@ buildListDebuggeesResponse() {
|
| var o = new api.ListDebuggeesResponse();
|
| buildCounterListDebuggeesResponse++;
|
| if (buildCounterListDebuggeesResponse < 3) {
|
| - o.debuggees = buildUnnamed1127();
|
| + o.debuggees = buildUnnamed1387();
|
| }
|
| buildCounterListDebuggeesResponse--;
|
| return o;
|
| @@ -565,7 +580,7 @@ buildListDebuggeesResponse() {
|
| checkListDebuggeesResponse(api.ListDebuggeesResponse o) {
|
| buildCounterListDebuggeesResponse++;
|
| if (buildCounterListDebuggeesResponse < 3) {
|
| - checkUnnamed1127(o.debuggees);
|
| + checkUnnamed1387(o.debuggees);
|
| }
|
| buildCounterListDebuggeesResponse--;
|
| }
|
| @@ -715,27 +730,27 @@ checkSourceLocation(api.SourceLocation o) {
|
| buildCounterSourceLocation--;
|
| }
|
|
|
| -buildUnnamed1128() {
|
| +buildUnnamed1388() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1128(core.List<api.Variable> o) {
|
| +checkUnnamed1388(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| }
|
|
|
| -buildUnnamed1129() {
|
| +buildUnnamed1389() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1129(core.List<api.Variable> o) {
|
| +checkUnnamed1389(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| @@ -746,9 +761,9 @@ buildStackFrame() {
|
| var o = new api.StackFrame();
|
| buildCounterStackFrame++;
|
| if (buildCounterStackFrame < 3) {
|
| - o.arguments = buildUnnamed1128();
|
| + o.arguments = buildUnnamed1388();
|
| o.function = "foo";
|
| - o.locals = buildUnnamed1129();
|
| + o.locals = buildUnnamed1389();
|
| o.location = buildSourceLocation();
|
| }
|
| buildCounterStackFrame--;
|
| @@ -758,9 +773,9 @@ buildStackFrame() {
|
| checkStackFrame(api.StackFrame o) {
|
| buildCounterStackFrame++;
|
| if (buildCounterStackFrame < 3) {
|
| - checkUnnamed1128(o.arguments);
|
| + checkUnnamed1388(o.arguments);
|
| unittest.expect(o.function, unittest.equals('foo'));
|
| - checkUnnamed1129(o.locals);
|
| + checkUnnamed1389(o.locals);
|
| checkSourceLocation(o.location);
|
| }
|
| buildCounterStackFrame--;
|
| @@ -825,14 +840,14 @@ checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) {
|
| buildCounterUpdateActiveBreakpointResponse--;
|
| }
|
|
|
| -buildUnnamed1130() {
|
| +buildUnnamed1390() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1130(core.List<api.Variable> o) {
|
| +checkUnnamed1390(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| @@ -843,7 +858,7 @@ buildVariable() {
|
| var o = new api.Variable();
|
| buildCounterVariable++;
|
| if (buildCounterVariable < 3) {
|
| - o.members = buildUnnamed1130();
|
| + o.members = buildUnnamed1390();
|
| o.name = "foo";
|
| o.status = buildStatusMessage();
|
| o.type = "foo";
|
| @@ -857,7 +872,7 @@ buildVariable() {
|
| checkVariable(api.Variable o) {
|
| buildCounterVariable++;
|
| if (buildCounterVariable < 3) {
|
| - checkUnnamed1130(o.members);
|
| + checkUnnamed1390(o.members);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkStatusMessage(o.status);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -1288,6 +1303,7 @@ main() {
|
| api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees;
|
| var arg_project = "foo";
|
| var arg_includeInactive = true;
|
| + var arg_clientVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1316,6 +1332,7 @@ main() {
|
| }
|
| unittest.expect(queryMap["project"].first, unittest.equals(arg_project));
|
| unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive"));
|
| + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion));
|
|
|
|
|
| var h = {
|
| @@ -1324,7 +1341,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListDebuggeesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(project: arg_project, includeInactive: arg_includeInactive).then(unittest.expectAsync(((api.ListDebuggeesResponse response) {
|
| + res.list(project: arg_project, includeInactive: arg_includeInactive, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.ListDebuggeesResponse response) {
|
| checkListDebuggeesResponse(response);
|
| })));
|
| });
|
| @@ -1339,6 +1356,7 @@ main() {
|
| api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints;
|
| var arg_debuggeeId = "foo";
|
| var arg_breakpointId = "foo";
|
| + var arg_clientVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1375,6 +1393,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion));
|
|
|
|
|
| var h = {
|
| @@ -1383,7 +1402,7 @@ main() {
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_debuggeeId, arg_breakpointId).then(unittest.expectAsync(((api.Empty response) {
|
| + res.delete(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
| @@ -1394,6 +1413,7 @@ main() {
|
| api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints;
|
| var arg_debuggeeId = "foo";
|
| var arg_breakpointId = "foo";
|
| + var arg_clientVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1430,6 +1450,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion));
|
|
|
|
|
| var h = {
|
| @@ -1438,7 +1459,7 @@ main() {
|
| var resp = convert.JSON.encode(buildGetBreakpointResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_debuggeeId, arg_breakpointId).then(unittest.expectAsync(((api.GetBreakpointResponse response) {
|
| + res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.GetBreakpointResponse response) {
|
| checkGetBreakpointResponse(response);
|
| })));
|
| });
|
| @@ -1453,6 +1474,7 @@ main() {
|
| var arg_action_value = "foo";
|
| var arg_stripResults = true;
|
| var arg_waitToken = "foo";
|
| + var arg_clientVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1491,6 +1513,7 @@ main() {
|
| unittest.expect(queryMap["action.value"].first, unittest.equals(arg_action_value));
|
| unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_stripResults"));
|
| unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitToken));
|
| + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion));
|
|
|
|
|
| var h = {
|
| @@ -1499,7 +1522,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListBreakpointsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_debuggeeId, includeAllUsers: arg_includeAllUsers, includeInactive: arg_includeInactive, action_value: arg_action_value, stripResults: arg_stripResults, waitToken: arg_waitToken).then(unittest.expectAsync(((api.ListBreakpointsResponse response) {
|
| + res.list(arg_debuggeeId, includeAllUsers: arg_includeAllUsers, includeInactive: arg_includeInactive, action_value: arg_action_value, stripResults: arg_stripResults, waitToken: arg_waitToken, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.ListBreakpointsResponse response) {
|
| checkListBreakpointsResponse(response);
|
| })));
|
| });
|
| @@ -1510,6 +1533,7 @@ main() {
|
| api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints;
|
| var arg_request = buildBreakpoint();
|
| var arg_debuggeeId = "foo";
|
| + var arg_clientVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.Breakpoint.fromJson(json);
|
| checkBreakpoint(obj);
|
| @@ -1546,6 +1570,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion));
|
|
|
|
|
| var h = {
|
| @@ -1554,7 +1579,7 @@ main() {
|
| var resp = convert.JSON.encode(buildSetBreakpointResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.set(arg_request, arg_debuggeeId).then(unittest.expectAsync(((api.SetBreakpointResponse response) {
|
| + res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).then(unittest.expectAsync(((api.SetBreakpointResponse response) {
|
| checkSetBreakpointResponse(response);
|
| })));
|
| });
|
|
|