| 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/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/metrics/histogram_samples.h" | 15 #include "base/metrics/histogram_samples.h" |
| 16 #include "base/metrics/statistics_recorder.h" | 16 #include "base/metrics/statistics_recorder.h" |
| 17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
| 19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
| 20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 21 #include "net/base/test_completion_callback.h" | 21 #include "net/base/test_completion_callback.h" |
| 22 #include "net/test/spawned_test_server.h" | 22 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 23 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
| 24 #include "net/url_request/url_request_test_util.h" | 24 #include "net/url_request/url_request_test_util.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using base::HistogramBase; | 28 using base::HistogramBase; |
| 29 using base::HistogramSamples; | 29 using base::HistogramSamples; |
| 30 | 30 |
| 31 namespace chrome_browser_net { | 31 namespace chrome_browser_net { |
| 32 | 32 |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 callback.WaitForResult(); | 588 callback.WaitForResult(); |
| 589 | 589 |
| 590 ExpectHistogramCount(1, false, FIELD_CANARY); | 590 ExpectHistogramCount(1, false, FIELD_CANARY); |
| 591 ExpectHistogramCount(0, false, FIELD_SUCCESS); | 591 ExpectHistogramCount(0, false, FIELD_SUCCESS); |
| 592 ExpectHistogramCount(0, true, FIELD_SUCCESS); | 592 ExpectHistogramCount(0, true, FIELD_SUCCESS); |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // anonymous namespace | 595 } // anonymous namespace |
| 596 | 596 |
| 597 } // namespace chrome_browser_net | 597 } // namespace chrome_browser_net |
| OLD | NEW |