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

Unified Diff: chrome/browser/chromeos/login/user_image_manager_test_util.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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/chromeos/login/user_image_manager_test_util.h
diff --git a/chrome/browser/chromeos/login/user_image_manager_test_util.h b/chrome/browser/chromeos/login/user_image_manager_test_util.h
deleted file mode 100644
index dc08c8c289a9e9a91b24d1d7573fefe6833ef9ef..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/user_image_manager_test_util.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_TEST_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_TEST_UTIL_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/files/file_path.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/run_loop.h"
-#include "chrome/browser/image_decoder.h"
-
-class SKBitmap;
-
-namespace base {
-class FilePath;
-}
-
-namespace gfx {
-class ImageSkia;
-}
-
-namespace chromeos {
-namespace test {
-
-extern const char kUserAvatarImage1RelativePath[];
-extern const char kUserAvatarImage2RelativePath[];
-
-// Returns |true| if the two given images are pixel-for-pixel identical.
-bool AreImagesEqual(const gfx::ImageSkia& first, const gfx::ImageSkia& second);
-
-class ImageLoader : public ImageDecoder::Delegate {
- public:
- explicit ImageLoader(const base::FilePath& path);
- virtual ~ImageLoader();
-
- scoped_ptr<gfx::ImageSkia> Load();
-
- // ImageDecoder::Delegate:
- virtual void OnImageDecoded(const ImageDecoder* decoder,
- const SkBitmap& decoded_image) OVERRIDE;
- virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
-
- private:
- base::FilePath path_;
- base::RunLoop run_loop_;
-
- scoped_ptr<gfx::ImageSkia> decoded_image_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageLoader);
-};
-
-} // namespace test
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698