OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/path_service.h" | 11 #include "base/path_service.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 13 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
14 #include "components/guest_view/browser/test_guest_view_manager.h" | 15 #include "components/guest_view/browser/test_guest_view_manager.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/common/content_features.h" | 17 #include "content/public/common/content_features.h" |
17 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
18 #include "content/public/test/browser_test_utils.h" | 19 #include "content/public/test/browser_test_utils.h" |
19 #include "extensions/browser/api/extensions_api_client.h" | 20 #include "extensions/browser/api/extensions_api_client.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 CHECK_EQ(guest_size.height(), 400); | 278 CHECK_EQ(guest_size.height(), 400); |
278 } | 279 } |
279 | 280 |
280 // Regression test for crbug.com/587709. | 281 // Regression test for crbug.com/587709. |
281 IN_PROC_BROWSER_TEST_P(MimeHandlerViewTest, SingleRequest) { | 282 IN_PROC_BROWSER_TEST_P(MimeHandlerViewTest, SingleRequest) { |
282 GURL url(embedded_test_server()->GetURL("/testBasic.csv")); | 283 GURL url(embedded_test_server()->GetURL("/testBasic.csv")); |
283 URLRequestCounter request_counter(url); | 284 URLRequestCounter request_counter(url); |
284 RunTest("testBasic.csv"); | 285 RunTest("testBasic.csv"); |
285 EXPECT_EQ(1, request_counter.GetCount()); | 286 EXPECT_EQ(1, request_counter.GetCount()); |
286 } | 287 } |
OLD | NEW |