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

Unified Diff: webkit/fileapi/media/picasa/pmp_test_helper.h

Issue 13529028: PicasaAlbumTableReader for Media Galleries API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0005-picasa-import-pmp-reader
Patch Set: Fix ifdef guard. Created 7 years, 8 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: webkit/fileapi/media/picasa/pmp_test_helper.h
diff --git a/webkit/fileapi/media/picasa/pmp_test_helper.h b/webkit/fileapi/media/picasa/pmp_test_helper.h
index 2da2118b35212ea175688ef43f089b07f5d52bdd..a42a63da083a0b34e4d07e91dfa2611619ee946d 100644
--- a/webkit/fileapi/media/picasa/pmp_test_helper.h
+++ b/webkit/fileapi/media/picasa/pmp_test_helper.h
@@ -22,20 +22,20 @@ class PmpColumnReader;
// A helper class used for unit tests only
class PmpTestHelper {
public:
- PmpTestHelper();
+ PmpTestHelper(const std::string& table_name);
bool Init();
base::FilePath GetTempDirPath();
template<class T>
- bool WriteColumnFileFromVector(const std::string& table_name,
- const std::string& column_name,
+ bool WriteColumnFileFromVector(const std::string& column_name,
const PmpFieldType field_type,
const std::vector<T>& elements_vector);
bool InitColumnReaderFromBytes(PmpColumnReader* const reader,
const std::vector<uint8>& data,
+ const PmpFieldType expected_type,
uint32* rows_read);
static std::vector<uint8> MakeHeader(const PmpFieldType field_type,
@@ -47,6 +47,7 @@ class PmpTestHelper {
const std::vector<T>& elems);
private:
+ std::string table_name_;
base::ScopedTempDir temp_dir_;
};

Powered by Google App Engine
This is Rietveld 408576698