1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef CALL_ADAPTATION_TEST_FAKE_RESOURCE_H_
- #define CALL_ADAPTATION_TEST_FAKE_RESOURCE_H_
- #include <string>
- #include <vector>
- #include "absl/types/optional.h"
- #include "api/adaptation/resource.h"
- #include "api/scoped_refptr.h"
- namespace webrtc {
- class FakeResource : public Resource {
- public:
- static rtc::scoped_refptr<FakeResource> Create(std::string name);
- explicit FakeResource(std::string name);
- ~FakeResource() override;
- void SetUsageState(ResourceUsageState usage_state);
-
- std::string Name() const override;
- void SetResourceListener(ResourceListener* listener) override;
- private:
- const std::string name_;
- ResourceListener* listener_;
- };
- }
- #endif
|