This source file includes following definitions.
- TEST
#include "net/websockets/websocket_deflate_predictor_impl.h"
#include "base/basictypes.h"
#include "base/memory/scoped_vector.h"
#include "net/websockets/websocket_frame.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
typedef WebSocketDeflatePredictor::Result Result;
TEST(WebSocketDeflatePredictorImpl, Predict) {
WebSocketDeflatePredictorImpl predictor;
ScopedVector<WebSocketFrame> frames;
frames.push_back(new WebSocketFrame(WebSocketFrameHeader::kOpCodeText));
Result result = predictor.Predict(frames, 0);
EXPECT_EQ(WebSocketDeflatePredictor::DEFLATE, result);
}
}
}