OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_BROWSER_TEST_BASE_H_ |
6 #define CONTENT_TEST_BROWSER_TEST_BASE_H_ | 6 #define CONTENT_TEST_BROWSER_TEST_BASE_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 class BrowserTestBase : public testing::Test { | 11 class BrowserTestBase : public testing::Test { |
13 public: | 12 public: |
14 BrowserTestBase(); | 13 BrowserTestBase(); |
15 virtual ~BrowserTestBase(); | 14 virtual ~BrowserTestBase(); |
16 | 15 |
17 // We do this so we can be used in a Task. | 16 // We do this so we can be used in a Task. |
(...skipping 27 matching lines...) Expand all Loading... |
45 // This is invoked from main after browser_init/browser_main have completed. | 44 // This is invoked from main after browser_init/browser_main have completed. |
46 // This prepares for the test by creating a new browser, runs the test | 45 // This prepares for the test by creating a new browser, runs the test |
47 // (RunTestOnMainThread), quits the browsers and returns. | 46 // (RunTestOnMainThread), quits the browsers and returns. |
48 virtual void RunTestOnMainThreadLoop() = 0; | 47 virtual void RunTestOnMainThreadLoop() = 0; |
49 | 48 |
50 private: | 49 private: |
51 void ProxyRunTestOnMainThreadLoop(); | 50 void ProxyRunTestOnMainThreadLoop(); |
52 }; | 51 }; |
53 | 52 |
54 #endif // CONTENT_TEST_BROWSER_TEST_BASE_H_ | 53 #endif // CONTENT_TEST_BROWSER_TEST_BASE_H_ |
OLD | NEW |