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

Side by Side Diff: chrome/browser/themes/browser_theme_pack_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/themes/browser_theme_pack.h" 5 #include "chrome/browser/themes/browser_theme_pack.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_value_serializer.h" 9 #include "base/json/json_value_serializer.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/scoped_temp_dir.h" 12 #include "base/scoped_temp_dir.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/themes/theme_service.h" 14 #include "chrome/browser/themes/theme_service.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
18 #include "grit/theme_resources_standard.h" 18 #include "grit/theme_resources_standard.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "ui/gfx/color_utils.h" 20 #include "ui/gfx/color_utils.h"
21 21
22 using content::BrowserThread;
23
22 class BrowserThemePackTest : public ::testing::Test { 24 class BrowserThemePackTest : public ::testing::Test {
23 public: 25 public:
24 BrowserThemePackTest() 26 BrowserThemePackTest()
25 : message_loop(), 27 : message_loop(),
26 fake_ui_thread(BrowserThread::UI, &message_loop), 28 fake_ui_thread(BrowserThread::UI, &message_loop),
27 fake_file_thread(BrowserThread::FILE, &message_loop), 29 fake_file_thread(BrowserThread::FILE, &message_loop),
28 theme_pack_(new BrowserThemePack) { 30 theme_pack_(new BrowserThemePack) {
29 } 31 }
30 32
31 // Transformation for link underline colors. 33 // Transformation for link underline colors.
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 423
422 // Part 2: Try to read back the data pack that we just wrote to disk. 424 // Part 2: Try to read back the data pack that we just wrote to disk.
423 { 425 {
424 scoped_refptr<BrowserThemePack> pack = 426 scoped_refptr<BrowserThemePack> pack =
425 BrowserThemePack::BuildFromDataPack( 427 BrowserThemePack::BuildFromDataPack(
426 file, "mblmlcbknbnfebdfjnolmcapmdofhmme"); 428 file, "mblmlcbknbnfebdfjnolmcapmdofhmme");
427 ASSERT_TRUE(pack.get()); 429 ASSERT_TRUE(pack.get());
428 VerifyStarGazing(pack.get()); 430 VerifyStarGazing(pack.get());
429 } 431 }
430 } 432 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698