Chromium Code Reviews| 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/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
| 6 #include "chrome/common/extensions/manifest_handler.h" | |
| 7 #include "chrome/common/extensions/sandboxed_handler.h" | |
| 6 | 8 |
| 7 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) { | 9 namespace extensions { |
| 10 | |
| 11 class SandboxedPagesApiTest : public ExtensionApiTest { | |
| 12 protected: | |
| 13 virtual void SetUpOnMainThread() OVERRIDE { | |
| 14 ExtensionApiTest::SetUpOnMainThread(); | |
| 15 (new SandboxedHandler)->Register(); | |
|
Yoyo Zhou
2013/03/20 22:53:53
I don't think we need these in browser tests.
Devlin
2013/03/23 22:26:25
Done.
| |
| 16 } | |
| 17 }; | |
| 18 | |
| 19 IN_PROC_BROWSER_TEST_F(SandboxedPagesApiTest, SandboxedPages) { | |
| 8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; | 20 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; |
| 9 } | 21 } |
| 22 | |
| 23 } // namespace extensions | |
| OLD | NEW |