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

Side by Side Diff: content/browser/child_process_security_policy_unittest.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "content/browser/child_process_security_policy_impl.h" 11 #include "content/browser/child_process_security_policy_impl.h"
12 #include "content/public/common/url_constants.h" 12 #include "content/public/common/url_constants.h"
13 #include "content/test/test_content_browser_client.h" 13 #include "content/test/test_content_browser_client.h"
14 #include "googleurl/src/gurl.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 namespace { 18 namespace {
19 19
20 const int kRendererID = 42; 20 const int kRendererID = 42;
21 const int kWorkerRendererID = kRendererID + 1; 21 const int kWorkerRendererID = kRendererID + 1;
22 22
23 #if defined(FILE_PATH_USES_DRIVE_LETTERS) 23 #if defined(FILE_PATH_USES_DRIVE_LETTERS)
24 #define TEST_PATH(x) FILE_PATH_LITERAL("c:") FILE_PATH_LITERAL(x) 24 #define TEST_PATH(x) FILE_PATH_LITERAL("c:") FILE_PATH_LITERAL(x)
25 #else 25 #else
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 // queried on the IO thread. The ChildProcessSecurityPolicy needs to be 521 // queried on the IO thread. The ChildProcessSecurityPolicy needs to be
522 // prepared to answer policy questions about renderers who no longer exist. 522 // prepared to answer policy questions about renderers who no longer exist.
523 523
524 // In this case, we default to secure behavior. 524 // In this case, we default to secure behavior.
525 EXPECT_FALSE(p->CanRequestURL(kRendererID, url)); 525 EXPECT_FALSE(p->CanRequestURL(kRendererID, url));
526 EXPECT_FALSE(p->CanReadFile(kRendererID, file)); 526 EXPECT_FALSE(p->CanReadFile(kRendererID, file));
527 EXPECT_FALSE(p->HasWebUIBindings(kRendererID)); 527 EXPECT_FALSE(p->HasWebUIBindings(kRendererID));
528 } 528 }
529 529
530 } // namespace content 530 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698