Chromium Code Reviews

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_test.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This test uses the safebrowsing test server published at 5 // This test uses the safebrowsing test server published at
6 // http://code.google.com/p/google-safe-browsing/ to test the safebrowsing 6 // http://code.google.com/p/google-safe-browsing/ to test the safebrowsing
7 // protocol implemetation. Details of the safebrowsing testing flow is 7 // protocol implemetation. Details of the safebrowsing testing flow is
8 // documented at 8 // documented at
9 // http://code.google.com/p/google-safe-browsing/wiki/ProtocolTesting 9 // http://code.google.com/p/google-safe-browsing/wiki/ProtocolTesting
10 // 10 //
(...skipping 11 matching lines...)
22 #include "base/lock.h" 22 #include "base/lock.h"
23 #include "base/path_service.h" 23 #include "base/path_service.h"
24 #include "base/process_util.h" 24 #include "base/process_util.h"
25 #include "base/string_number_conversions.h" 25 #include "base/string_number_conversions.h"
26 #include "base/string_util.h" 26 #include "base/string_util.h"
27 #include "base/string_split.h" 27 #include "base/string_split.h"
28 #include "base/time.h" 28 #include "base/time.h"
29 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
30 #include "chrome/browser/browser_process.h" 30 #include "chrome/browser/browser_process.h"
31 #include "chrome/browser/browser_thread.h" 31 #include "chrome/browser/browser_thread.h"
32 #include "chrome/browser/profile.h" 32 #include "chrome/browser/profiles/profile.h"
33 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 33 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
34 #include "chrome/browser/safe_browsing/protocol_manager.h" 34 #include "chrome/browser/safe_browsing/protocol_manager.h"
35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 35 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
36 #include "chrome/common/chrome_switches.h" 36 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/url_constants.h" 37 #include "chrome/common/url_constants.h"
38 #include "chrome/test/in_process_browser_test.h" 38 #include "chrome/test/in_process_browser_test.h"
39 #include "base/test/test_timeouts.h" 39 #include "base/test/test_timeouts.h"
40 #include "chrome/test/ui_test_utils.h" 40 #include "chrome/test/ui_test_utils.h"
41 #include "net/base/host_resolver.h" 41 #include "net/base/host_resolver.h"
42 #include "net/base/load_flags.h" 42 #include "net/base/load_flags.h"
(...skipping 576 matching lines...)
619 } 619 }
620 620
621 // Verifies with server if test is done and waits till server responses. 621 // Verifies with server if test is done and waits till server responses.
622 EXPECT_EQ(URLRequestStatus::SUCCESS, 622 EXPECT_EQ(URLRequestStatus::SUCCESS,
623 safe_browsing_helper->VerifyTestComplete(server_host, 623 safe_browsing_helper->VerifyTestComplete(server_host,
624 server_port, 624 server_port,
625 last_step)); 625 last_step));
626 EXPECT_EQ("yes", safe_browsing_helper->response_data()); 626 EXPECT_EQ("yes", safe_browsing_helper->response_data());
627 test_server.Stop(); 627 test_server.Stop();
628 } 628 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/search_engines/edit_search_engine_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine