Lines Matching refs:resp
52 resp = network_metrics.HTTPResponse(self.MakeNetworkTimelineEvent(
59 self.assertEqual(url, resp.response.url)
60 body, base64_encoded = resp.response.GetBody()
63 self.assertEqual('text/html', resp.response.GetHeader('Content-Type'))
65 self.assertEqual(len(HTML_BODY), resp.content_length)
66 self.assertEqual(None, resp.response.GetHeader('Content-Encoding'))
67 self.assertFalse(resp.has_original_content_length)
68 self.assertEqual(0.0, resp.data_saving_rate)
71 resp = network_metrics.HTTPResponse(self.MakeNetworkTimelineEvent(
79 body, base64_encoded = resp.response.GetBody()
81 self.assertEqual(GZIPPED_HTML_LEN, resp.content_length)
82 self.assertEqual('gzip', resp.response.GetHeader('Content-Encoding'))
83 self.assertTrue(resp.has_original_content_length)
84 self.assertEqual(len(HTML_BODY), resp.original_content_length)
87 resp.data_saving_rate)
90 resp = network_metrics.HTTPResponse(self.MakeNetworkTimelineEvent(
99 body, base64_encoded = resp.response.GetBody()
102 self.assertEqual(len(IMAGE_BODY), resp.content_length)
103 self.assertTrue(resp.has_original_content_length)
104 self.assertEqual(IMAGE_OCL, resp.original_content_length)
105 self.assertFalse(resp.response.served_from_cache)
107 resp.data_saving_rate)
110 resp = network_metrics.HTTPResponse(self.MakeNetworkTimelineEvent(
120 self.assertEqual(len(IMAGE_BODY), resp.content_length)
121 self.assertTrue(resp.has_original_content_length)
122 self.assertEqual(IMAGE_OCL, resp.original_content_length)
124 self.assertTrue(resp.response.served_from_cache)
125 self.assertEqual(0.0, resp.data_saving_rate)