| 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 "content/public/test/test_launcher.h" | 5 #include "content/public/test/test_launcher.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "content/public/app/content_main.h" | 35 #include "content/public/app/content_main.h" |
| 36 #include "content/public/app/content_main_delegate.h" | 36 #include "content/public/app/content_main_delegate.h" |
| 37 #include "content/public/common/content_switches.h" | 37 #include "content/public/common/content_switches.h" |
| 38 #include "content/public/common/sandbox_init.h" | 38 #include "content/public/common/sandbox_init.h" |
| 39 #include "content/public/test/browser_test.h" | 39 #include "content/public/test/browser_test.h" |
| 40 #include "net/base/escape.h" | 40 #include "net/base/escape.h" |
| 41 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
| 42 | 42 |
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 44 #include "base/base_switches.h" | 44 #include "base/base_switches.h" |
| 45 #include "content/common/sandbox_win.h" | |
| 46 #include "content/public/app/sandbox_helper_win.h" | |
| 47 #include "sandbox/win/src/sandbox_factory.h" | |
| 48 #include "sandbox/win/src/sandbox_types.h" | |
| 49 #elif defined(OS_MACOSX) | 45 #elif defined(OS_MACOSX) |
| 50 #include "base/mac/scoped_nsautorelease_pool.h" | 46 #include "base/mac/scoped_nsautorelease_pool.h" |
| 51 #endif | 47 #endif |
| 52 | 48 |
| 53 namespace content { | 49 namespace content { |
| 54 | 50 |
| 55 namespace { | 51 namespace { |
| 56 | 52 |
| 57 // Tests with this prefix run before the same test without it, and use the same | 53 // Tests with this prefix run before the same test without it, and use the same |
| 58 // profile. i.e. Foo.PRE_Test runs and then Foo.Test. This allows writing tests | 54 // profile. i.e. Foo.PRE_Test runs and then Foo.Test. This allows writing tests |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 | 546 |
| 551 TestLauncherDelegate* GetCurrentTestLauncherDelegate() { | 547 TestLauncherDelegate* GetCurrentTestLauncherDelegate() { |
| 552 return g_launcher_delegate; | 548 return g_launcher_delegate; |
| 553 } | 549 } |
| 554 | 550 |
| 555 ContentMainParams* GetContentMainParams() { | 551 ContentMainParams* GetContentMainParams() { |
| 556 return g_params; | 552 return g_params; |
| 557 } | 553 } |
| 558 | 554 |
| 559 } // namespace content | 555 } // namespace content |
| OLD | NEW |