Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client_unittest.cc

Issue 24544004: Remove the chrome namespace around ChromeContent[Renderer]Client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <vector> 7 #include <vector>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/renderer/searchbox/search_bouncer.h" 11 #include "chrome/renderer/searchbox/search_bouncer.h"
12 #include "content/public/common/webplugininfo.h" 12 #include "content/public/common/webplugininfo.h"
13 #include "extensions/common/extension_builder.h" 13 #include "extensions/common/extension_builder.h"
14 #include "extensions/common/manifest_constants.h" 14 #include "extensions/common/manifest_constants.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
17 #include "third_party/WebKit/public/platform/WebVector.h" 17 #include "third_party/WebKit/public/platform/WebVector.h"
18 #include "third_party/WebKit/public/web/WebPluginParams.h" 18 #include "third_party/WebKit/public/web/WebPluginParams.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 using WebKit::WebPluginParams; 21 using WebKit::WebPluginParams;
22 using WebKit::WebString; 22 using WebKit::WebString;
23 using WebKit::WebVector; 23 using WebKit::WebVector;
24 using chrome::ChromeContentRendererClient;
25 using content::WebPluginInfo; 24 using content::WebPluginInfo;
26 using content::WebPluginMimeType; 25 using content::WebPluginMimeType;
27 26
28 namespace chrome {
29
30 namespace { 27 namespace {
31 const bool kNaClRestricted = false; 28 const bool kNaClRestricted = false;
32 const bool kNaClUnrestricted = true; 29 const bool kNaClUnrestricted = true;
33 const bool kExtensionRestricted = false; 30 const bool kExtensionRestricted = false;
34 const bool kExtensionUnrestricted = true; 31 const bool kExtensionUnrestricted = true;
35 const bool kExtensionNotFromWebStore = false; 32 const bool kExtensionNotFromWebStore = false;
36 const bool kExtensionFromWebStore = true; 33 const bool kExtensionFromWebStore = true;
37 const bool kNotHostedApp = false; 34 const bool kNotHostedApp = false;
38 const bool kHostedApp = true; 35 const bool kHostedApp = true;
39 36
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 379 }
383 380
384 TEST_F(ChromeContentRendererClientTest, ShouldSuppressErrorPage) { 381 TEST_F(ChromeContentRendererClientTest, ShouldSuppressErrorPage) {
385 ChromeContentRendererClient client; 382 ChromeContentRendererClient client;
386 client.search_bouncer_.reset(new SearchBouncer); 383 client.search_bouncer_.reset(new SearchBouncer);
387 client.search_bouncer_->OnSetSearchURLs( 384 client.search_bouncer_->OnSetSearchURLs(
388 std::vector<GURL>(), GURL("http://example.com/n")); 385 std::vector<GURL>(), GURL("http://example.com/n"));
389 EXPECT_FALSE(client.ShouldSuppressErrorPage(GURL("http://example.com"))); 386 EXPECT_FALSE(client.ShouldSuppressErrorPage(GURL("http://example.com")));
390 EXPECT_TRUE(client.ShouldSuppressErrorPage(GURL("http://example.com/n"))); 387 EXPECT_TRUE(client.ShouldSuppressErrorPage(GURL("http://example.com/n")));
391 } 388 }
392
393 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client_browsertest.cc ('k') | chrome/renderer/chrome_render_process_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698