OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/net/http_pipelining_compatibility_client.h" | 5 #include "chrome/browser/net/http_pipelining_compatibility_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
16 #include "content/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/test_completion_callback.h" | 18 #include "net/base/test_completion_callback.h" |
19 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
20 #include "net/url_request/url_request_test_util.h" | 20 #include "net/url_request/url_request_test_util.h" |
21 #include "net/test/test_server.h" | 21 #include "net/test/test_server.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace chrome_browser_net { | 25 namespace chrome_browser_net { |
26 | 26 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 callback.WaitForResult(); | 553 callback.WaitForResult(); |
554 | 554 |
555 ExpectHistogramCount(1, false, FIELD_CANARY); | 555 ExpectHistogramCount(1, false, FIELD_CANARY); |
556 ExpectHistogramCount(0, false, FIELD_SUCCESS); | 556 ExpectHistogramCount(0, false, FIELD_SUCCESS); |
557 ExpectHistogramCount(0, true, FIELD_SUCCESS); | 557 ExpectHistogramCount(0, true, FIELD_SUCCESS); |
558 } | 558 } |
559 | 559 |
560 } // anonymous namespace | 560 } // anonymous namespace |
561 | 561 |
562 } // namespace chrome_browser_net | 562 } // namespace chrome_browser_net |
OLD | NEW |