Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/browser/translate/translate_browsertest.cc

Issue 14691006: Move SpawnedTestServer to its own subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_TRANSLATE_TRANSLATE_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_BROWSERTEST_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_BROWSERTEST_H_ 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_BROWSERTEST_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/browser/translate/translate_infobar_delegate.h" 12 #include "chrome/browser/translate/translate_infobar_delegate.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/test/base/in_process_browser_test.h" 17 #include "chrome/test/base/in_process_browser_test.h"
18 #include "chrome/test/base/ui_test_utils.h" 18 #include "chrome/test/base/ui_test_utils.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "content/public/test/browser_test_utils.h" 20 #include "content/public/test/browser_test_utils.h"
21 #include "net/http/http_status_code.h" 21 #include "net/http/http_status_code.h"
22 #include "net/test/spawned_test_server.h" 22 #include "net/test/spawned_test_server/spawned_test_server.h"
23 #include "net/url_request/test_url_fetcher_factory.h" 23 #include "net/url_request/test_url_fetcher_factory.h"
24 #include "net/url_request/url_fetcher_delegate.h" 24 #include "net/url_request/url_fetcher_delegate.h"
25 25
26 namespace { 26 namespace {
27 27
28 const base::FilePath::CharType kTranslateRoot[] = 28 const base::FilePath::CharType kTranslateRoot[] =
29 FILE_PATH_LITERAL("chrome/test/data/translate"); 29 FILE_PATH_LITERAL("chrome/test/data/translate");
30 const char kNonSecurePrefix[] = "files/translate/"; 30 const char kNonSecurePrefix[] = "files/translate/";
31 const char kSecurePrefix[] = "files/"; 31 const char kSecurePrefix[] = "files/";
32 const char kTargetPath[] = "fr_test.html"; 32 const char kTargetPath[] = "fr_test.html";
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 fetcher->set_response_code(net::HTTP_OK); 127 fetcher->set_response_code(net::HTTP_OK);
128 fetcher->SetResponseString(element_js); 128 fetcher->SetResponseString(element_js);
129 fetcher->delegate()->OnURLFetchComplete(fetcher); 129 fetcher->delegate()->OnURLFetchComplete(fetcher);
130 130
131 // Wait for the page title is changed after the test finished. 131 // Wait for the page title is changed after the test finished.
132 const string16 result = watcher.WaitAndGetTitle(); 132 const string16 result = watcher.WaitAndGetTitle();
133 EXPECT_TRUE(EqualsASCII(result, "PASS")); 133 EXPECT_TRUE(EqualsASCII(result, "PASS"));
134 } 134 }
135 135
136 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_BROWSERTEST_H_ 136 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/view_source_browsertest.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698