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

Unified Diff: content/common/sandbox_mac_fontloading_unittest.mm

Issue 11228040: Move sandbox code in content to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_mac_fontloading_unittest.mm
===================================================================
--- content/common/sandbox_mac_fontloading_unittest.mm (revision 163460)
+++ content/common/sandbox_mac_fontloading_unittest.mm (working copy)
@@ -14,12 +14,9 @@
#include "content/common/sandbox_mac_unittest_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace {
+namespace content {
-using sandboxtest::MacSandboxTest;
-using sandbox::Sandbox;
-
-class FontLoadingTestCase : public sandboxtest::MacSandboxTestCase {
+class FontLoadingTestCase : public MacSandboxTestCase {
public:
FontLoadingTestCase() : font_data_length_(-1) {}
virtual bool BeforeSandboxInit();
@@ -121,10 +118,10 @@
static_cast<const char *>(result.font_data.memory()),
result.font_data_size);
- ASSERT_TRUE(RunTestInSandbox(content::SANDBOX_TYPE_RENDERER,
+ ASSERT_TRUE(RunTestInSandbox(SANDBOX_TYPE_RENDERER,
"FontLoadingTestCase", temp_file_path.value().c_str()));
temp_file_closer.reset();
ASSERT_TRUE(file_util::Delete(temp_file_path, false));
}
-} // namespace
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698