Chromium Code Reviews

Side by Side Diff: chrome/browser/ui/gtk/gtk_theme_provider_unittest.cc

Issue 6251001: Move chrome/browser/gtk/ to chrome/browser/ui/gtk/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_provider.cc ('k') | chrome/browser/ui/gtk/gtk_tree.h » ('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) 2009 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "chrome/browser/gtk/gtk_theme_provider.h" 7 #include "chrome/browser/gtk/gtk_theme_provider.h"
8 #include "chrome/browser/prefs/pref_service.h" 8 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
(...skipping 50 matching lines...)
62 // large, implied global state, it would take some IN_PROCESS_BROWSER_TESTS 62 // large, implied global state, it would take some IN_PROCESS_BROWSER_TESTS
63 // to write an equivalent of DefaultValues above in a way that wouldn't make 63 // to write an equivalent of DefaultValues above in a way that wouldn't make
64 // other tests flaky. kColorTabText is the only simple path where there's no 64 // other tests flaky. kColorTabText is the only simple path where there's no
65 // weird calculations for edge cases so use that as a simple test. 65 // weird calculations for edge cases so use that as a simple test.
66 GtkWidget* fake_label = provider_->fake_label(); 66 GtkWidget* fake_label = provider_->fake_label();
67 GtkStyle* label_style = gtk_rc_get_style(fake_label); 67 GtkStyle* label_style = gtk_rc_get_style(fake_label);
68 GdkColor label_color = label_style->fg[GTK_STATE_NORMAL]; 68 GdkColor label_color = label_style->fg[GTK_STATE_NORMAL];
69 EXPECT_EQ(provider_->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT), 69 EXPECT_EQ(provider_->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT),
70 GdkToSkColor(&label_color)); 70 GdkToSkColor(&label_color));
71 } 71 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_provider.cc ('k') | chrome/browser/ui/gtk/gtk_tree.h » ('j') | no next file with comments »

Powered by Google App Engine