| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/error_page/renderer/net_error_helper_core.h" | 5 #include "components/error_page/renderer/net_error_helper_core.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 12 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/metrics/statistics_recorder.h" | 17 #include "base/metrics/statistics_recorder.h" |
| 15 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 16 #include "base/test/histogram_tester.h" | 19 #include "base/test/histogram_tester.h" |
| 17 #include "base/timer/mock_timer.h" | 20 #include "base/timer/mock_timer.h" |
| 18 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
| 19 #include "base/values.h" | 22 #include "base/values.h" |
| 23 #include "build/build_config.h" |
| 20 #include "components/error_page/common/error_page_params.h" | 24 #include "components/error_page/common/error_page_params.h" |
| 21 #include "components/error_page/common/net_error_info.h" | 25 #include "components/error_page/common/net_error_info.h" |
| 22 #include "components/test_runner/test_common.h" | 26 #include "components/test_runner/test_common.h" |
| 23 #include "content/public/common/url_constants.h" | 27 #include "content/public/common/url_constants.h" |
| 24 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "third_party/WebKit/public/platform/WebURLError.h" | 30 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 27 #include "url/gurl.h" | 31 #include "url/gurl.h" |
| 28 | 32 |
| 29 namespace error_page { | 33 namespace error_page { |
| (...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2600 EXPECT_EQ(0, show_offline_pages_count()); | 2604 EXPECT_EQ(0, show_offline_pages_count()); |
| 2601 EXPECT_EQ(0, load_offline_copy_count()); | 2605 EXPECT_EQ(0, load_offline_copy_count()); |
| 2602 core()->ExecuteButtonPress(NetErrorHelperCore::SHOW_OFFLINE_COPY_BUTTON); | 2606 core()->ExecuteButtonPress(NetErrorHelperCore::SHOW_OFFLINE_COPY_BUTTON); |
| 2603 EXPECT_EQ(0, show_offline_pages_count()); | 2607 EXPECT_EQ(0, show_offline_pages_count()); |
| 2604 EXPECT_EQ(1, load_offline_copy_count()); | 2608 EXPECT_EQ(1, load_offline_copy_count()); |
| 2605 } | 2609 } |
| 2606 #endif // defined(OS_ANDROID) | 2610 #endif // defined(OS_ANDROID) |
| 2607 | 2611 |
| 2608 } // namespace | 2612 } // namespace |
| 2609 } // namespace error_page | 2613 } // namespace error_page |
| OLD | NEW |