OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ | 5 #ifndef ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ |
6 #define ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ | 6 #define ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ |
7 | 7 |
8 #include "chrome/test/base/in_process_browser_test.h" | 8 #include "chrome/test/base/in_process_browser_test.h" |
9 | 9 |
| 10 namespace base { |
| 11 class CommandLine; |
| 12 } |
| 13 |
10 namespace athena { | 14 namespace athena { |
11 | 15 |
12 // Base class for athena tests which allows to use WebActivities. | 16 // Base class for athena tests which allows to use WebActivities. |
13 // | 17 // |
14 // Note: To avoid asynchronous resource manager events, the memory pressure | 18 // Note: To avoid asynchronous resource manager events, the memory pressure |
15 // callback gets turned off at the beginning to a low memory pressure. | 19 // callback gets turned off at the beginning to a low memory pressure. |
16 class AthenaBrowserTest : public InProcessBrowserTest { | 20 class AthenaBrowserTest : public InProcessBrowserTest { |
17 public: | 21 public: |
18 AthenaBrowserTest(); | 22 AthenaBrowserTest(); |
19 ~AthenaBrowserTest() override; | 23 ~AthenaBrowserTest() override; |
20 | 24 |
21 protected: | 25 protected: |
22 // BrowserTestBase: | 26 // BrowserTestBase: |
| 27 void SetUpCommandLine(base::CommandLine* command_line) override; |
23 void SetUpOnMainThread() override; | 28 void SetUpOnMainThread() override; |
24 | 29 |
25 private: | 30 private: |
26 DISALLOW_COPY_AND_ASSIGN(AthenaBrowserTest); | 31 DISALLOW_COPY_AND_ASSIGN(AthenaBrowserTest); |
27 }; | 32 }; |
28 | 33 |
29 } // namespace athena | 34 } // namespace athena |
30 | 35 |
31 #endif // ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ | 36 #endif // ATHENA_TEST_CHROME_ATHENA_BROWSERTEST_H_ |
32 | 37 |
OLD | NEW |