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

Side by Side Diff: content/common/sandbox_mac_system_access_unittest.mm

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)
Patch Set: review comments Created 4 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
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #include <openssl/rand.h>
7 #include <stdint.h> 6 #include <stdint.h>
8 7
9 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
10 #include "base/files/scoped_file.h" 9 #include "base/files/scoped_file.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
13 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
14 #include "content/common/sandbox_mac.h" 13 #include "content/common/sandbox_mac.h"
15 #include "content/common/sandbox_mac_unittest_helper.h" 14 #include "content/common/sandbox_mac_unittest_helper.h"
16 #include "crypto/openssl_util.h" 15 #include "crypto/openssl_util.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/boringssl/src/include/openssl/rand.h"
18 #import "ui/base/clipboard/clipboard_util_mac.h" 18 #import "ui/base/clipboard/clipboard_util_mac.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 //--------------------- Clipboard Sandboxing ---------------------- 22 //--------------------- Clipboard Sandboxing ----------------------
23 // Test case for checking sandboxing of clipboard access. 23 // Test case for checking sandboxing of clipboard access.
24 class MacSandboxedClipboardTestCase : public MacSandboxTestCase { 24 class MacSandboxedClipboardTestCase : public MacSandboxTestCase {
25 public: 25 public:
26 MacSandboxedClipboardTestCase(); 26 MacSandboxedClipboardTestCase();
27 ~MacSandboxedClipboardTestCase() override; 27 ~MacSandboxedClipboardTestCase() override;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Ensure that RAND_bytes is functional within the sandbox. 141 // Ensure that RAND_bytes is functional within the sandbox.
142 uint8_t byte; 142 uint8_t byte;
143 return RAND_bytes(&byte, 1) == 1; 143 return RAND_bytes(&byte, 1) == 1;
144 } 144 }
145 145
146 TEST_F(MacSandboxTest, OpenSSLAccess) { 146 TEST_F(MacSandboxTest, OpenSSLAccess) {
147 EXPECT_TRUE(RunTestInAllSandboxTypes("MacSandboxedOpenSSLTestCase", NULL)); 147 EXPECT_TRUE(RunTestInAllSandboxTypes("MacSandboxedOpenSSLTestCase", NULL));
148 } 148 }
149 149
150 } // namespace content 150 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698