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) |