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

Side by Side Diff: chrome/browser/safe_browsing/local_safebrowsing_test_server.h

Issue 10073033: Run safebrowsing_service_test through the net testserver code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/local_safebrowsing_test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_SAFEBROWSING_TEST_SERVER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_SAFEBROWSING_TEST_SERVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/file_path.h"
11 #include "net/test/local_test_server.h"
12
13 // Runs a Python-based safebrowsing test server on the same machine in which the
14 // LocalSafeBrowsingTestServer runs.
15 class LocalSafeBrowsingTestServer : public net::LocalTestServer {
16 public:
17 // Initialize a safebrowsing server using the given |data_file|.
18 explicit LocalSafeBrowsingTestServer(const FilePath& data_file);
19
20 virtual ~LocalSafeBrowsingTestServer();
21
22 virtual bool SetPythonPath() const OVERRIDE;
23
24 // Returns the path to safe_browsing_testserver.py.
25 virtual bool GetTestServerPath(FilePath* testserver_path) const OVERRIDE;
26
27 protected:
28 // Adds the --data-file switch. Returns true on success.
29 virtual bool GenerateAdditionalArguments(
30 base::DictionaryValue* arguments) const OVERRIDE;
31
32 private:
33 FilePath data_file_;
34
35 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingTestServer);
36 };
37
38 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_SAFEBROWSING_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/local_safebrowsing_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698