OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/gtk/options/cookies_view.h" | 5 #include "chrome/browser/gtk/options/cookies_view.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 EXPECT_EQ(expected_appcache, | 83 EXPECT_EQ(expected_appcache, |
84 GTK_WIDGET_SENSITIVE(display->appcache_manifest_entry_)); | 84 GTK_WIDGET_SENSITIVE(display->appcache_manifest_entry_)); |
85 EXPECT_EQ(expected_appcache, | 85 EXPECT_EQ(expected_appcache, |
86 GTK_WIDGET_SENSITIVE(display->appcache_size_entry_)); | 86 GTK_WIDGET_SENSITIVE(display->appcache_size_entry_)); |
87 EXPECT_EQ(expected_appcache, | 87 EXPECT_EQ(expected_appcache, |
88 GTK_WIDGET_SENSITIVE(display->appcache_created_entry_)); | 88 GTK_WIDGET_SENSITIVE(display->appcache_created_entry_)); |
89 EXPECT_EQ(expected_appcache, | 89 EXPECT_EQ(expected_appcache, |
90 GTK_WIDGET_SENSITIVE(display->appcache_last_accessed_entry_)); | 90 GTK_WIDGET_SENSITIVE(display->appcache_last_accessed_entry_)); |
91 // IndexedDB | 91 // IndexedDB |
92 EXPECT_EQ(expected_indexed_db, | 92 EXPECT_EQ(expected_indexed_db, |
93 GTK_WIDGET_SENSITIVE(display->indexed_db_name_entry_)); | |
94 EXPECT_EQ(expected_indexed_db, | |
95 GTK_WIDGET_SENSITIVE(display->indexed_db_origin_entry_)); | 93 GTK_WIDGET_SENSITIVE(display->indexed_db_origin_entry_)); |
96 EXPECT_EQ(expected_indexed_db, | 94 EXPECT_EQ(expected_indexed_db, |
97 GTK_WIDGET_SENSITIVE(display->indexed_db_size_entry_)); | 95 GTK_WIDGET_SENSITIVE(display->indexed_db_size_entry_)); |
98 EXPECT_EQ(expected_indexed_db, | 96 EXPECT_EQ(expected_indexed_db, |
99 GTK_WIDGET_SENSITIVE(display->indexed_db_last_modified_entry_)); | 97 GTK_WIDGET_SENSITIVE(display->indexed_db_last_modified_entry_)); |
100 } | 98 } |
101 | 99 |
102 // Get the cookie names in the cookie list, as a comma seperated string. | 100 // Get the cookie names in the cookie list, as a comma seperated string. |
103 // (Note that the CookieMonster cookie list is sorted by domain.) | 101 // (Note that the CookieMonster cookie list is sorted by domain.) |
104 // Ex: | 102 // Ex: |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 SCOPED_TRACE("First selection removed"); | 1193 SCOPED_TRACE("First selection removed"); |
1196 EXPECT_STREQ("C,B", GetMonsterCookies(monster).c_str()); | 1194 EXPECT_STREQ("C,B", GetMonsterCookies(monster).c_str()); |
1197 EXPECT_STREQ("gdbhost1,_Web Databases,__db1," | 1195 EXPECT_STREQ("gdbhost1,_Web Databases,__db1," |
1198 "host1,_Local Storage,__http://host1:1/", | 1196 "host1,_Local Storage,__http://host1:1/", |
1199 GetDisplayedCookies(cookies_view).c_str()); | 1197 GetDisplayedCookies(cookies_view).c_str()); |
1200 EXPECT_EQ(TRUE, GTK_WIDGET_SENSITIVE(cookies_view.remove_all_button_)); | 1198 EXPECT_EQ(TRUE, GTK_WIDGET_SENSITIVE(cookies_view.remove_all_button_)); |
1201 EXPECT_EQ(FALSE, GTK_WIDGET_SENSITIVE(cookies_view.remove_button_)); | 1199 EXPECT_EQ(FALSE, GTK_WIDGET_SENSITIVE(cookies_view.remove_button_)); |
1202 CheckDetailsSensitivity(FALSE, FALSE, FALSE, FALSE, FALSE, cookies_view); | 1200 CheckDetailsSensitivity(FALSE, FALSE, FALSE, FALSE, FALSE, cookies_view); |
1203 } | 1201 } |
1204 } | 1202 } |
OLD | NEW |