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

Side by Side Diff: tools/chrome_proxy/testserver/server.go

Issue 398823010: move chrome_proxy test server to tools/chrome_proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Test server to facilitate the data reduction proxy Telemetry tests. 1 // Test server to facilitate the data reduction proxy Telemetry tests.
2 // 2 //
3 // The server runs at http://chromeproxy-test.appspot.com/. Please contact 3 // The server runs at http://chromeproxy-test.appspot.com/. Please contact
4 // people in OWNERS for server issues. 4 // people in OWNERS for server issues.
5 // 5 //
6 // For running an AppEngine Go server, see: 6 // For running an AppEngine Go server, see:
7 // https://developers.google.com/appengine/docs/go/gettingstarted/introduction. 7 // https://developers.google.com/appengine/docs/go/gettingstarted/introduction.
8 // 8 //
9 // The goal is to keep the test logic on the client side (Telemetry) 9 // The goal is to keep the test logic on the client side (Telemetry)
10 // as much as possible. This server will only return a resource 10 // as much as possible. This server will only return a resource
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return false, nil 150 return false, nil
151 } 151 }
152 152
153 func writeFromFile(w io.Writer, filename string) (int64, error) { 153 func writeFromFile(w io.Writer, filename string) (int64, error) {
154 f, err := os.Open(filename) 154 f, err := os.Open(filename)
155 if err != nil { 155 if err != nil {
156 return 0, err 156 return 0, err
157 } 157 }
158 return io.Copy(w, f) 158 return io.Copy(w, f)
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698