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

Unified Diff: tools/telemetry/telemetry/core/backends/png_bitmap_unittest.py

Issue 23072018: [telemetry] Move telemetry/core/chrome/ to telemetry/core/backends/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix perf smoothness_unittest. Created 7 years, 4 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
Index: tools/telemetry/telemetry/core/backends/png_bitmap_unittest.py
diff --git a/tools/telemetry/telemetry/core/chrome/png_bitmap_unittest.py b/tools/telemetry/telemetry/core/backends/png_bitmap_unittest.py
similarity index 96%
rename from tools/telemetry/telemetry/core/chrome/png_bitmap_unittest.py
rename to tools/telemetry/telemetry/core/backends/png_bitmap_unittest.py
index 48a709eeb9652441234ce92401449f00cdbf55d5..0e3c233c8cd7e1f58a977444fe3f58d2080cb9d6 100644
--- a/tools/telemetry/telemetry/core/chrome/png_bitmap_unittest.py
+++ b/tools/telemetry/telemetry/core/backends/png_bitmap_unittest.py
@@ -1,11 +1,13 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Copyright 2013 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.
+
import unittest
import os
-from telemetry.core.chrome import png_bitmap
from telemetry.core import util
+from telemetry.core.backends import png_bitmap
+
# This is a simple base64 encoded 2x2 PNG which contains, in order, a single
# Red, Yellow, Blue, and Green pixel.
@@ -16,9 +18,11 @@ MBAJqcGAAAABZJREFUCNdj/M/AwPCfgYGB4T/DfwY
AHAAD/iOWZXsAAAAASUVORK5CYII=
"""
+
test_png_path = os.path.join(util.GetUnittestDataDir(), 'test_png.png')
test_png_2_path = os.path.join(util.GetUnittestDataDir(), 'test_png_2.png')
+
class PngBitmapTest(unittest.TestCase):
def testReadFromBase64(self):
png = png_bitmap.PngBitmap.FromBase64(test_png)

Powered by Google App Engine
This is Rietveld 408576698