• Home
  • Raw
  • Download

Lines Matching refs:deflater

21   WebSocketDeflater deflater(WebSocketDeflater::TAKE_OVER_CONTEXT);  in TEST()  local
22 deflater.Initialize(8); in TEST()
23 ASSERT_EQ(0u, deflater.CurrentOutputSize()); in TEST()
24 ASSERT_TRUE(deflater.Finish()); in TEST()
26 deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
28 ASSERT_EQ(0u, deflater.CurrentOutputSize()); in TEST()
32 WebSocketDeflater deflater(WebSocketDeflater::TAKE_OVER_CONTEXT); in TEST() local
33 deflater.Initialize(15); in TEST()
36 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
37 ASSERT_TRUE(deflater.Finish()); in TEST()
38 actual1 = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
42 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
43 ASSERT_TRUE(deflater.Finish()); in TEST()
44 actual2 = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
49 WebSocketDeflater deflater(WebSocketDeflater::DO_NOT_TAKE_OVER_CONTEXT); in TEST() local
50 deflater.Initialize(15); in TEST()
53 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
54 ASSERT_TRUE(deflater.Finish()); in TEST()
55 actual1 = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
59 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
60 ASSERT_TRUE(deflater.Finish()); in TEST()
61 actual2 = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
67 WebSocketDeflater deflater(WebSocketDeflater::DO_NOT_TAKE_OVER_CONTEXT); in TEST() local
68 deflater.Initialize(15); in TEST()
73 ASSERT_TRUE(deflater.AddBytes(&c, 1)); in TEST()
75 ASSERT_TRUE(deflater.Finish()); in TEST()
76 actual = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
81 WebSocketDeflater deflater(WebSocketDeflater::TAKE_OVER_CONTEXT); in TEST() local
82 deflater.Initialize(15); in TEST()
85 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
86 ASSERT_TRUE(deflater.Finish()); in TEST()
87 deflater.PushSyncMark(); in TEST()
88 ASSERT_TRUE(deflater.Finish()); in TEST()
89 deflater.PushSyncMark(); in TEST()
90 ASSERT_TRUE(deflater.AddBytes("Hello", 5)); in TEST()
91 ASSERT_TRUE(deflater.Finish()); in TEST()
93 actual = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
98 ASSERT_EQ(0u, deflater.CurrentOutputSize()); in TEST()
102 WebSocketDeflater deflater(WebSocketDeflater::DO_NOT_TAKE_OVER_CONTEXT); in TEST() local
103 deflater.Initialize(8); in TEST()
110 ASSERT_TRUE(deflater.AddBytes(input.data(), input.size())); in TEST()
111 ASSERT_TRUE(deflater.Finish()); in TEST()
112 actual = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()
119 WebSocketDeflater deflater(WebSocketDeflater::DO_NOT_TAKE_OVER_CONTEXT); in TEST() local
120 deflater.Initialize(10); in TEST()
127 ASSERT_TRUE(deflater.AddBytes(input.data(), input.size())); in TEST()
128 ASSERT_TRUE(deflater.Finish()); in TEST()
129 actual = deflater.GetOutput(deflater.CurrentOutputSize()); in TEST()