Skip to content

Commit

Permalink
Adding stream group creation
Browse files Browse the repository at this point in the history
Summary:
Uploader stream group wraps a dgw stream group and provides a single point for all communication.

The group will be created once auth creds are available and will be recreated on any error.

Differential Revision: D64174403

fbshipit-source-id: 9ac9c1a31290284977d9f89aa066af398aa16128
  • Loading branch information
Alex Snast authored and facebook-github-bot committed Oct 10, 2024
1 parent b739dc7 commit b27bc6d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions proxygen/httpserver/Mocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <folly/portability/GMock.h>
#include <proxygen/httpserver/RequestHandler.h>
#include <proxygen/httpserver/RequestHandlerFactory.h>
#include <proxygen/httpserver/ResponseHandler.h>

namespace proxygen {
Expand Down Expand Up @@ -104,4 +105,15 @@ class MockRequestHandler : public RequestHandler {
}
};

class MockRequestHandlerFactory : public RequestHandlerFactory {
public:
~MockRequestHandlerFactory() override = default;
MOCK_METHOD(void, onServerStart, (folly::EventBase*), (noexcept, override));
MOCK_METHOD(void, onServerStop, (), (noexcept, override));
MOCK_METHOD((RequestHandler*),
onRequest,
(RequestHandler*, HTTPMessage*),
(noexcept, override));
};

} // namespace proxygen

0 comments on commit b27bc6d

Please sign in to comment.