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

Unified Diff: chrome/browser/history/history_unittest.cc

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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: chrome/browser/history/history_unittest.cc
===================================================================
--- chrome/browser/history/history_unittest.cc (revision 27832)
+++ chrome/browser/history/history_unittest.cc (working copy)
@@ -20,12 +20,12 @@
#include <time.h>
#include <algorithm>
+#include "app/gfx/codec/jpeg_codec.h"
#include "app/sql/connection.h"
#include "app/sql/statement.h"
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/file_util.h"
-#include "base/gfx/jpeg_codec.h"
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/scoped_vector.h"
@@ -668,7 +668,7 @@
ASSERT_TRUE(history->Init(history_dir_, NULL));
scoped_ptr<SkBitmap> thumbnail(
- JPEGCodec::Decode(kGoogleThumbnail, sizeof(kGoogleThumbnail)));
+ gfx::JPEGCodec::Decode(kGoogleThumbnail, sizeof(kGoogleThumbnail)));
static const double boringness = 0.25;
const GURL url("http://www.google.com/thumbnail_test/");
@@ -687,7 +687,7 @@
// compression and we don't have a similarity measure.
EXPECT_TRUE(thumbnail_data_.size());
scoped_ptr<SkBitmap> decoded_thumbnail(
- JPEGCodec::Decode(&thumbnail_data_[0], thumbnail_data_.size()));
+ gfx::JPEGCodec::Decode(&thumbnail_data_[0], thumbnail_data_.size()));
EXPECT_TRUE(decoded_thumbnail.get());
// Request a nonexistent thumbnail and make sure we get

Powered by Google App Engine
This is Rietveld 408576698