OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 class WebstoreInstallerTest : public ExtensionBrowserTest { | 30 class WebstoreInstallerTest : public ExtensionBrowserTest { |
31 public: | 31 public: |
32 WebstoreInstallerTest(const std::string& webstore_domain, | 32 WebstoreInstallerTest(const std::string& webstore_domain, |
33 const std::string& test_data_path, | 33 const std::string& test_data_path, |
34 const std::string& crx_filename, | 34 const std::string& crx_filename, |
35 const std::string& verified_domain, | 35 const std::string& verified_domain, |
36 const std::string& unverified_domain); | 36 const std::string& unverified_domain); |
37 ~WebstoreInstallerTest() override; | 37 ~WebstoreInstallerTest() override; |
38 | 38 |
39 void SetUpCommandLine(base::CommandLine* command_line) override; | 39 void SetUpCommandLine(base::CommandLine* command_line) override; |
40 void SetUpInProcessBrowserTestFixture() override; | |
41 void SetUpOnMainThread() override; | 40 void SetUpOnMainThread() override; |
42 | 41 |
43 protected: | 42 protected: |
44 GURL GenerateTestServerUrl(const std::string& domain, | 43 GURL GenerateTestServerUrl(const std::string& domain, |
45 const std::string& page_filename); | 44 const std::string& page_filename); |
46 | 45 |
47 void RunTest(const std::string& test_function_name); | 46 void RunTest(const std::string& test_function_name); |
48 | 47 |
49 void RunTest(content::WebContents* web_contents, | 48 void RunTest(content::WebContents* web_contents, |
50 const std::string& test_function_name); | 49 const std::string& test_function_name); |
(...skipping 30 matching lines...) Expand all Loading... |
81 | 80 |
82 base::ScopedTempDir download_directory_; | 81 base::ScopedTempDir download_directory_; |
83 | 82 |
84 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> | 83 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> |
85 install_auto_confirm_; | 84 install_auto_confirm_; |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(WebstoreInstallerTest); | 86 DISALLOW_COPY_AND_ASSIGN(WebstoreInstallerTest); |
88 }; | 87 }; |
89 | 88 |
90 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ | 89 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_TEST_H_ |
OLD | NEW |