)]}'
{
  "commit": "64f171ad0a48ff60cd3a3ae5cd49151fb96e0010",
  "tree": "9fadda39ea9c7fedb6cdbe566e9c0ab1e2fd4c15",
  "parents": [
    "5d46eb3670bfa46bf12bfc56e93e41a009d84e53"
  ],
  "author": {
    "name": "Harald Alvestrand",
    "email": "hta@webrtc.org",
    "time": "Thu May 07 10:13:33 2026"
  },
  "committer": {
    "name": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu May 07 11:38:28 2026"
  },
  "message": "Refactor pc/media_session_unittest.cc and introduce Yoda-test swapping tool.\n\nThis CL improves pc/media_session_unittest.cc by modernizing its structure\nand improving assertion readability:\n1.  Transitioned several global and local Codec and RtpExtension constants\n    from raw arrays to std::vector.\n2.  Updated the CodecListsMatch matcher to use .Matches() for comparison,\n    making it resilient to dynamic payload type assignments.\n3.  Swapped GTest assertion arguments to follow the (value, constant) pattern,\n    eliminating \"Yoda tests\".\n4.  Refactored CodecLookupHelperForTesting to support explicit expectation\n    registration, improving test reliability under field trials.\n5.  Const-qualified PayloadType methods in api/payload_type.h to support\n    usage in refined test logic.\n\nTo facilitate and verify the argument swapping, a new tool and its unit\ntests are added to the tools_webrtc directory.\n\nBug: None\nChange-Id: I5e83ac5cebd67d7a38eafb7d2801d7e1c4bc0e54\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/470160\nReviewed-by: Danil Chapovalov \u003cdanilchap@webrtc.org\u003e\nCommit-Queue: Harald Alvestrand \u003chta@webrtc.org\u003e\nCr-Commit-Position: refs/heads/main@{#47646}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dc40b1f696fbc8cecf533251f0f2d1b45751a335",
      "old_mode": 33188,
      "old_path": "api/payload_type.h",
      "new_id": "fe401cb19b7577a8a09412f01844dd8512d66020",
      "new_mode": 33188,
      "new_path": "api/payload_type.h"
    },
    {
      "type": "modify",
      "old_id": "69a8bd27ea9d66ad068fc7ac46d48848d1863545",
      "old_mode": 33188,
      "old_path": "pc/media_session_unittest.cc",
      "new_id": "4daa25f3510aa5ebe65e9f815c40a0b5e0189840",
      "new_mode": 33188,
      "new_path": "pc/media_session_unittest.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1c57fe063e659c43907c8f04f7e2b6c17950d773",
      "new_mode": 33188,
      "new_path": "tools_webrtc/swap_gtest_args.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "72336debcb947e64e4aacd4f439755f1659deff3",
      "new_mode": 33188,
      "new_path": "tools_webrtc/swap_gtest_args_unittest.py"
    }
  ]
}
