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

Unified Diff: src/utils/SkBase64.h

Issue 132233060: Port SkBase64 test to our test driver. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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: src/utils/SkBase64.h
diff --git a/src/utils/SkBase64.h b/src/utils/SkBase64.h
index 5bf90066327b2c4fdb5ada39c96b6e2ae4de00cd..359da141070d62fee434a60c8679c2cd87025931 100644
--- a/src/utils/SkBase64.h
+++ b/src/utils/SkBase64.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2006 The Android Open Source Project
*
@@ -6,7 +5,6 @@
* found in the LICENSE file.
*/
-
#ifndef SkBase64_DEFINED
#define SkBase64_DEFINED
@@ -21,8 +19,13 @@ public:
};
SkBase64();
+
Error decode(const char* src, size_t length);
+
char* getData() { return fData; }
+
+ size_t length() const { return fLength; }
mtklein 2014/01/30 02:33:02 Let's drop this and remove that assert in the test
tfarina 2014/01/30 02:44:59 Done.
+
/**
Base64 encodes src into dst. encode is a pointer to at least 65 chars.
encode[64] will be used as the pad character. Encodings other than the
@@ -30,9 +33,6 @@ public:
*/
static size_t Encode(const void* src, size_t length, void* dest, const char* encode = NULL);
-#ifdef SK_SUPPORT_UNITTEST
- static void UnitTest();
-#endif
private:
Error decode(const void* srcPtr, size_t length, bool writeDestination);

Powered by Google App Engine
This is Rietveld 408576698