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 #ifndef CONTENT_TEST_BROWSER_TEST_BASE_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
6 #define CONTENT_TEST_BROWSER_TEST_BASE_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "net/test/test_server.h" | 10 #include "net/test/test_server.h" |
11 | 11 |
12 class CommandLine; | 12 class CommandLine; |
13 | 13 |
| 14 namespace content { |
| 15 |
14 class BrowserTestBase : public testing::Test { | 16 class BrowserTestBase : public testing::Test { |
15 public: | 17 public: |
16 BrowserTestBase(); | 18 BrowserTestBase(); |
17 virtual ~BrowserTestBase(); | 19 virtual ~BrowserTestBase(); |
18 | 20 |
19 // We do this so we can be used in a Task. | 21 // We do this so we can be used in a Task. |
20 void AddRef() {} | 22 void AddRef() {} |
21 void Release() {} | 23 void Release() {} |
22 | 24 |
23 // Configures everything for an in process browser test, then invokes | 25 // Configures everything for an in process browser test, then invokes |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void ProxyRunTestOnMainThreadLoop(); | 82 void ProxyRunTestOnMainThreadLoop(); |
81 | 83 |
82 // Testing server, started on demand. | 84 // Testing server, started on demand. |
83 scoped_ptr<net::TestServer> test_server_; | 85 scoped_ptr<net::TestServer> test_server_; |
84 | 86 |
85 #if defined(OS_POSIX) | 87 #if defined(OS_POSIX) |
86 bool handle_sigterm_; | 88 bool handle_sigterm_; |
87 #endif | 89 #endif |
88 }; | 90 }; |
89 | 91 |
90 #endif // CONTENT_TEST_BROWSER_TEST_BASE_H_ | 92 } // namespace content |
| 93 |
| 94 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
OLD | NEW |