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

Unified Diff: chrome/browser/gtk/options/cookies_view_unittest.cc

Issue 1774005: GTK: The cookie prompt should allow the user to set expire date for HTML cookies (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Fix tests Created 10 years, 8 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/gtk/options/cookies_view_unittest.cc
diff --git a/chrome/browser/gtk/options/cookies_view_unittest.cc b/chrome/browser/gtk/options/cookies_view_unittest.cc
index 9857092f9fd6c8d6361628ccadd401b81fc2c1fb..0aeef9035af8480d797adc1640687875547259e0 100644
--- a/chrome/browser/gtk/options/cookies_view_unittest.cc
+++ b/chrome/browser/gtk/options/cookies_view_unittest.cc
@@ -43,61 +43,47 @@ class CookiesViewTest : public testing::Test {
gboolean expected_local_storage,
gboolean expected_appcache,
const CookiesView& cookies_view) {
+ GtkChromeCookieView* display = GTK_CHROME_COOKIE_VIEW(
+ cookies_view.cookie_display_);
+
// Cookies
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_name_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_name_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_content_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_content_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_domain_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_domain_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_path_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_path_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_send_for_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_send_for_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_created_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_created_entry_));
EXPECT_EQ(expected_cookies,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- cookie_expires_entry_));
+ GTK_WIDGET_SENSITIVE(display->cookie_expires_entry_));
// Database
EXPECT_EQ(expected_database,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- database_description_entry_));
+ GTK_WIDGET_SENSITIVE(display->database_description_entry_));
EXPECT_EQ(expected_database,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- database_size_entry_));
+ GTK_WIDGET_SENSITIVE(display->database_size_entry_));
EXPECT_EQ(expected_database,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- database_last_modified_entry_));
+ GTK_WIDGET_SENSITIVE(display->database_last_modified_entry_));
// Local Storage
EXPECT_EQ(expected_local_storage,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- local_storage_origin_entry_));
- EXPECT_EQ(expected_local_storage,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- local_storage_size_entry_));
+ GTK_WIDGET_SENSITIVE(display->local_storage_origin_entry_));
EXPECT_EQ(expected_local_storage,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- local_storage_last_modified_entry_));
+ GTK_WIDGET_SENSITIVE(display->local_storage_size_entry_));
+ EXPECT_EQ(expected_local_storage, GTK_WIDGET_SENSITIVE(
+ display->local_storage_last_modified_entry_));
Evan Stade 2010/04/27 19:32:35 if you line wrap in an arg list, I tihnk you are s
Elliot Glaysher 2010/04/27 21:03:45 I'm pretty sure this is correct. The emacs rules b
// AppCache
EXPECT_EQ(expected_appcache,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- appcache_manifest_entry_));
+ GTK_WIDGET_SENSITIVE(display->appcache_manifest_entry_));
EXPECT_EQ(expected_appcache,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- appcache_size_entry_));
+ GTK_WIDGET_SENSITIVE(display->appcache_size_entry_));
EXPECT_EQ(expected_appcache,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- appcache_created_entry_));
+ GTK_WIDGET_SENSITIVE(display->appcache_created_entry_));
EXPECT_EQ(expected_appcache,
- GTK_WIDGET_SENSITIVE(cookies_view.cookie_display_->
- appcache_last_accessed_entry_));
+ GTK_WIDGET_SENSITIVE(display->appcache_last_accessed_entry_));
}
// Get the cookie names in the cookie list, as a comma seperated string.
« chrome/browser/gtk/gtk_chrome_cookie_view.h ('K') | « chrome/browser/gtk/options/cookies_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698