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/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" |
10 #include "chrome/renderer/searchbox/search_bouncer.h" | 13 #include "chrome/renderer/searchbox/search_bouncer.h" |
11 #include "content/public/common/webplugininfo.h" | 14 #include "content/public/common/webplugininfo.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "url/gurl.h" | 16 #include "url/gurl.h" |
14 | 17 |
15 #if defined(ENABLE_EXTENSIONS) | 18 #if defined(ENABLE_EXTENSIONS) |
16 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
17 #include "extensions/common/extension_builder.h" | 20 #include "extensions/common/extension_builder.h" |
18 #include "extensions/common/manifest_constants.h" | 21 #include "extensions/common/manifest_constants.h" |
19 #endif | 22 #endif |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 ChromeContentRendererClient client; | 448 ChromeContentRendererClient client; |
446 SearchBouncer::GetInstance()->OnSetSearchURLs( | 449 SearchBouncer::GetInstance()->OnSetSearchURLs( |
447 std::vector<GURL>(), GURL("http://example.com/n")); | 450 std::vector<GURL>(), GURL("http://example.com/n")); |
448 EXPECT_FALSE(client.ShouldSuppressErrorPage(nullptr, | 451 EXPECT_FALSE(client.ShouldSuppressErrorPage(nullptr, |
449 GURL("http://example.com"))); | 452 GURL("http://example.com"))); |
450 EXPECT_TRUE(client.ShouldSuppressErrorPage(nullptr, | 453 EXPECT_TRUE(client.ShouldSuppressErrorPage(nullptr, |
451 GURL("http://example.com/n"))); | 454 GURL("http://example.com/n"))); |
452 SearchBouncer::GetInstance()->OnSetSearchURLs( | 455 SearchBouncer::GetInstance()->OnSetSearchURLs( |
453 std::vector<GURL>(), GURL::EmptyGURL()); | 456 std::vector<GURL>(), GURL::EmptyGURL()); |
454 } | 457 } |
OLD | NEW |