| 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_APP_BROWSERTEST_H_ | 5 #ifndef ATHENA_TEST_CHROME_ATHENA_APP_BROWSERTEST_H_ |
| 6 #define ATHENA_TEST_CHROME_ATHENA_APP_BROWSERTEST_H_ | 6 #define ATHENA_TEST_CHROME_ATHENA_APP_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/apps/app_browsertest_util.h" | 8 #include "chrome/browser/apps/app_browsertest_util.h" |
| 9 | 9 |
| 10 namespace athena { | 10 namespace athena { |
| 11 class Activity; | 11 class Activity; |
| 12 | 12 |
| 13 // Base class for athena tests. | 13 // Base class for athena tests. |
| 14 // | 14 // |
| 15 // Note: To avoid asynchronous resource manager events, the memory pressure | 15 // Note: To avoid asynchronous resource manager events, the memory pressure |
| 16 // callback gets turned off at the beginning to a low memory pressure. | 16 // callback gets turned off at the beginning to a low memory pressure. |
| 17 class AthenaAppBrowserTest : public extensions::PlatformAppBrowserTest { | 17 class AthenaAppBrowserTest : public extensions::PlatformAppBrowserTest { |
| 18 public: | 18 public: |
| 19 AthenaAppBrowserTest(); | 19 AthenaAppBrowserTest(); |
| 20 ~AthenaAppBrowserTest() override; | 20 ~AthenaAppBrowserTest() override; |
| 21 | 21 |
| 22 // extensions::PlatformAppBrowserTest: |
| 23 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 24 |
| 22 protected: | 25 protected: |
| 23 // Creates an app activity and returns after app is fully loaded. | 26 // Creates an app activity and returns after app is fully loaded. |
| 24 Activity* CreateTestAppActivity(const std::string app_id); | 27 Activity* CreateTestAppActivity(const std::string app_id); |
| 25 | 28 |
| 26 // Gets an application ID for an installed test application. | 29 // Gets an application ID for an installed test application. |
| 27 const std::string& GetTestAppID(); | 30 const std::string& GetTestAppID(); |
| 28 | 31 |
| 29 // BrowserTestBase: | 32 // BrowserTestBase: |
| 30 void SetUpOnMainThread() override; | 33 void SetUpOnMainThread() override; |
| 31 | 34 |
| 32 private: | 35 private: |
| 33 // Our created app id - after it got created and installed. | 36 // Our created app id - after it got created and installed. |
| 34 std::string app_id_; | 37 std::string app_id_; |
| 35 | 38 |
| 36 DISALLOW_COPY_AND_ASSIGN(AthenaAppBrowserTest); | 39 DISALLOW_COPY_AND_ASSIGN(AthenaAppBrowserTest); |
| 37 }; | 40 }; |
| 38 | 41 |
| 39 } // namespace athena | 42 } // namespace athena |
| 40 | 43 |
| 41 #endif // ATHENA_TEST_CHROME_ATHENA_APP_BROWSERTEST_H_ | 44 #endif // ATHENA_TEST_CHROME_ATHENA_APP_BROWSERTEST_H_ |
| 42 | 45 |
| OLD | NEW |