OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/chromedriver/server/http_handler.h" | 5 #include "chrome/test/chromedriver/server/http_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
375 base::Bind(&UnimplementedCommand)), | 375 base::Bind(&UnimplementedCommand)), |
376 CommandMapping( | 376 CommandMapping( |
377 kGet, | 377 kGet, |
378 "session/:sessionId/location", | 378 "session/:sessionId/location", |
379 WrapToCommand("GetGeolocation", base::Bind(&ExecuteGetLocation))), | 379 WrapToCommand("GetGeolocation", base::Bind(&ExecuteGetLocation))), |
380 CommandMapping( | 380 CommandMapping( |
381 kPost, | 381 kPost, |
382 "session/:sessionId/location", | 382 "session/:sessionId/location", |
383 WrapToCommand("SetGeolocation", base::Bind(&ExecuteSetLocation))), | 383 WrapToCommand("SetGeolocation", base::Bind(&ExecuteSetLocation))), |
384 CommandMapping( | 384 CommandMapping( |
385 kPost, | |
386 "session/:sessionId/network_connection", | |
387 WrapToCommand("SetEmulatedNetworkConditions", | |
388 base::Bind(&ExecuteSetEmulatedNetworkC onditions))), | |
samuong
2016/06/14 17:45:59
style nitpicks: unindent so that the second param
| |
389 CommandMapping( | |
385 kGet, | 390 kGet, |
386 "session/:sessionId/chromium/network_conditions", | 391 "session/:sessionId/chromium/network_conditions", |
387 WrapToCommand("GetNetworkConditions", | 392 WrapToCommand("GetNetworkConditions", |
388 base::Bind(&ExecuteGetNetworkConditions))), | 393 base::Bind(&ExecuteGetNetworkConditions))), |
389 CommandMapping( | 394 CommandMapping( |
390 kPost, | 395 kPost, |
391 "session/:sessionId/chromium/network_conditions", | 396 "session/:sessionId/chromium/network_conditions", |
392 WrapToCommand("SetNetworkConditions", | 397 WrapToCommand("SetNetworkConditions", |
393 base::Bind(&ExecuteSetNetworkConditions))), | 398 base::Bind(&ExecuteSetNetworkConditions))), |
394 CommandMapping( | 399 CommandMapping( |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
783 params.SetString(name, decoded); | 788 params.SetString(name, decoded); |
784 } else if (command_path_parts[i] != path_parts[i]) { | 789 } else if (command_path_parts[i] != path_parts[i]) { |
785 return false; | 790 return false; |
786 } | 791 } |
787 } | 792 } |
788 out_params->MergeDictionary(¶ms); | 793 out_params->MergeDictionary(¶ms); |
789 return true; | 794 return true; |
790 } | 795 } |
791 | 796 |
792 } // namespace internal | 797 } // namespace internal |
OLD | NEW |