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

Side by Side Diff: build/android/pylib/device/remote_device_utils.py

Issue 745793002: Add AMP support to test runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get rid of old/done TODOs Created 6 years 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
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
jbudorick 2014/11/30 22:57:02 I'd prefer a different name for this - the current
rnephew (Reviews Here) 2014/12/02 19:47:49 Chaning it to remote_device_helper for now, open t
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Common functions and Exceptions for remote_device_*"""
6
7
8 class RemoteDeviceError(Exception):
9 """Exception to throw when problems occur with remote device service."""
10 pass
11
12
13 def TestHttpResponse(response, error_msg):
14 """Checks the Http response from remote device service.
15
16 Args:
17 response: response dict from the remote device service.
18 error_msg: Error message to display if bad response is seen.
19 """
20 if response.status_code != 200:
21 raise RemoteDeviceError(error_msg)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698