diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 00:18:33 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 00:18:33 +0000 |
commit | 15b1b97a78d37e0c9ee6e4005bc80145acdd6585 (patch) | |
tree | 1980744e2fdc32433a14459fe5e37114d8f7bf0f /chrome/browser/browser_theme_pack_unittest.cc | |
parent | 1cf1f4636373269d1c4f9da6197c72b6b37d4351 (diff) | |
download | chromium_src-15b1b97a78d37e0c9ee6e4005bc80145acdd6585.zip chromium_src-15b1b97a78d37e0c9ee6e4005bc80145acdd6585.tar.gz chromium_src-15b1b97a78d37e0c9ee6e4005bc80145acdd6585.tar.bz2 |
BrowserThemePack: Move encoding the processed images to the writing thread.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/504032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_pack_unittest.cc')
-rw-r--r-- | chrome/browser/browser_theme_pack_unittest.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/browser_theme_pack_unittest.cc b/chrome/browser/browser_theme_pack_unittest.cc index 77da71b..7d780f2 100644 --- a/chrome/browser/browser_theme_pack_unittest.cc +++ b/chrome/browser/browser_theme_pack_unittest.cc @@ -20,7 +20,12 @@ class BrowserThemePackTest : public ::testing::Test { public: - BrowserThemePackTest() : theme_pack_(new BrowserThemePack) { } + BrowserThemePackTest() + : message_loop(), + fake_ui_thread(ChromeThread::UI, &message_loop), + fake_file_thread(ChromeThread::FILE, &message_loop), + theme_pack_(new BrowserThemePack) { + } // Transformation for link underline colors. SkColor BuildThirdOpacity(SkColor color_link) { @@ -159,6 +164,10 @@ class BrowserThemePackTest : public ::testing::Test { EXPECT_FALSE(pack->GetTint(BrowserThemeProvider::TINT_FRAME, &actual)); } + MessageLoop message_loop; + ChromeThread fake_ui_thread; + ChromeThread fake_file_thread; + scoped_refptr<BrowserThemePack> theme_pack_; }; |