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

Unified Diff: tools/telemetry/unittest_data/system_stub_test_module.py

Issue 999963002: Fix system_stub.Restore(), and add a unittest to catch the bug being fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Copyright info for Chromium presubmit. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/unittest_util/system_stub_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/unittest_data/system_stub_test_module.py
diff --git a/third_party/mojo/src/mojo/public/python/mojo_application/__init__.py b/tools/telemetry/unittest_data/system_stub_test_module.py
similarity index 61%
copy from third_party/mojo/src/mojo/public/python/mojo_application/__init__.py
copy to tools/telemetry/unittest_data/system_stub_test_module.py
index 50b23dff631dbfd12f490f20fe2a2871179b73b9..97e3ef35fa138d5d56bb5766dd890fe806ff8af4 100644
--- a/third_party/mojo/src/mojo/public/python/mojo_application/__init__.py
+++ b/tools/telemetry/unittest_data/system_stub_test_module.py
@@ -1,3 +1,7 @@
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+class SystemStubTest(object):
+ @staticmethod
+ def TestOpen(file_path):
+ return open(file_path)
« no previous file with comments | « tools/telemetry/telemetry/unittest_util/system_stub_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698