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

Unified Diff: chrome/browser/ui/views/file_manager_dialog_unittest.cc

Issue 8523006: Don't show FileManagerDialog if another FileManagerDialog is shown in the same tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a naming nit 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/file_manager_dialog_unittest.cc
diff --git a/chrome/browser/ui/views/file_manager_dialog_unittest.cc b/chrome/browser/ui/views/file_manager_dialog_unittest.cc
index 33ad4f0aed2bfebbf88fcdfd93fbf3e3dd1cd9e2..c5e4ced625e61a846cd9a55da555b7e570d7f6a9 100644
--- a/chrome/browser/ui/views/file_manager_dialog_unittest.cc
+++ b/chrome/browser/ui/views/file_manager_dialog_unittest.cc
@@ -13,7 +13,9 @@ class FileManagerDialogTest : public testing::Test {
int32 tab_id) {
FileManagerDialog* dialog = new FileManagerDialog(listener);
// Simulate the dialog opening.
+ EXPECT_FALSE(dialog->PendingExists(tab_id));
dialog->AddPending(tab_id);
+ EXPECT_TRUE(dialog->PendingExists(tab_id));
return dialog;
}
};

Powered by Google App Engine
This is Rietveld 408576698