Skip to content

Conversation

@graebm
Copy link
Contributor

@graebm graebm commented Mar 23, 2020

Move code around so we can re-use helpers.

Most of this code was already reviewed here: #187

How to review this PR:

  • First few files are just adding const to arguments
  • h2_test_helper.h/c
    • struct h2_decoded_frame used to be struct frame in test_h2_decoder.c
    • struct h2_decode_tester used to be struct fixture in test_h2_decoder.c
    • struct h2_fake_peer is NEW
  • test_h2_client.c: rewrote one test to use the helpers, instead of comparing against binary data I'd typed out by hand.
  • test_h2_decoder.c: massive changes not worth looking at, it's just from me moving/renaming the code.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@graebm graebm requested review from a team and TingDaoK March 23, 2020 17:06
Copy link
Contributor

@TingDaoK TingDaoK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear and helpful~

@graebm graebm merged commit 57883a8 into master Mar 23, 2020
@graebm graebm deleted the h2-test-helper branch March 23, 2020 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants