| Index: chrome/browser/extensions/activity_log/activity_log_browsertest.cc
|
| diff --git a/chrome/browser/extensions/activity_log/activity_log_browsertest.cc b/chrome/browser/extensions/activity_log/activity_log_browsertest.cc
|
| index 2080b6eb3aa1ca5591f915ae10ae612f45de7789..0884754dd8488102392900564814623e62bbc038 100644
|
| --- a/chrome/browser/extensions/activity_log/activity_log_browsertest.cc
|
| +++ b/chrome/browser/extensions/activity_log/activity_log_browsertest.cc
|
| @@ -15,6 +15,7 @@
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/test/browser_test_utils.h"
|
| #include "net/dns/mock_host_resolver.h"
|
| +#include "net/test/embedded_test_server/embedded_test_server.h"
|
|
|
| namespace extensions {
|
|
|
| @@ -84,9 +85,9 @@ IN_PROC_BROWSER_TEST_F(ActivityLogExtensionTest, MAYBE_ChromeEndToEnd) {
|
| TabStripModel* tab_strip = StartTestServerAndInitialize();
|
| ResultCatcher catcher;
|
| // Set the default URL so that is has the correct port number.
|
| - net::HostPortPair host_port = test_server()->host_port_pair();
|
| std::string url_setting_script = base::StringPrintf(
|
| - "defaultUrl = \'http://www.google.com:%d\';", host_port.port());
|
| + "defaultUrl = \'http://www.google.com:%d\';",
|
| + embedded_test_server()->port());
|
| ASSERT_TRUE(content::ExecuteScript(tab_strip->GetActiveWebContents(),
|
| url_setting_script));
|
| // Set the test buttons array
|
| @@ -111,9 +112,9 @@ IN_PROC_BROWSER_TEST_F(ActivityLogExtensionTest, MAYBE_DOMEndToEnd) {
|
| TabStripModel* tab_strip = StartTestServerAndInitialize();
|
| ResultCatcher catcher;
|
| // Set the default URL so that is has the correct port number.
|
| - net::HostPortPair host_port = test_server()->host_port_pair();
|
| std::string url_setting_script = base::StringPrintf(
|
| - "defaultUrl = \'http://www.google.com:%d\';", host_port.port());
|
| + "defaultUrl = \'http://www.google.com:%d\';",
|
| + embedded_test_server()->port());
|
| ASSERT_TRUE(content::ExecuteScript(tab_strip->GetActiveWebContents(),
|
| url_setting_script));
|
| // Set the test buttons array
|
| @@ -130,7 +131,7 @@ IN_PROC_BROWSER_TEST_F(ActivityLogExtensionTest, MAYBE_DOMEndToEnd) {
|
| IN_PROC_BROWSER_TEST_F(ActivityLogExtensionTest, ExtensionPrerender) {
|
| host_resolver()->AddRule("*", "127.0.0.1");
|
| StartTestServer();
|
| - int port = test_server()->host_port_pair().port();
|
| + int port = embedded_test_server()->port();
|
|
|
| // Get the extension (chrome/test/data/extensions/activity_log)
|
| const Extension* ext =
|
|
|