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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc

Issue 390503003: Enables permission bubbles to remain visible during fulscreen on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed alwaysShowDropdown Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/ui/website_settings/mock_permission_bubble_request.h" 8 #include "chrome/browser/ui/website_settings/mock_permission_bubble_request.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" 9 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
10 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 10 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 virtual void Hide() OVERRIDE { 45 virtual void Hide() OVERRIDE {
46 shown_ = false; 46 shown_ = false;
47 } 47 }
48 48
49 virtual bool CanAcceptRequestUpdate() OVERRIDE { 49 virtual bool CanAcceptRequestUpdate() OVERRIDE {
50 return can_accept_updates_; 50 return can_accept_updates_;
51 } 51 }
52 52
53 virtual bool IsVisible() OVERRIDE {
54 return shown_;
55 }
56
53 bool shown_; 57 bool shown_;
54 bool can_accept_updates_; 58 bool can_accept_updates_;
55 Delegate* delegate_; 59 Delegate* delegate_;
56 std::vector<PermissionBubbleRequest*> permission_requests_; 60 std::vector<PermissionBubbleRequest*> permission_requests_;
57 std::vector<bool> permission_states_; 61 std::vector<bool> permission_states_;
58 }; 62 };
59 63
60 } // namespace 64 } // namespace
61 65
62 class PermissionBubbleManagerTest : public ChromeRenderViewHostTestHarness { 66 class PermissionBubbleManagerTest : public ChromeRenderViewHostTestHarness {
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 EXPECT_FALSE(request2_.finished()); 523 EXPECT_FALSE(request2_.finished());
520 EXPECT_FALSE(iframe_request_other_domain_.finished()); 524 EXPECT_FALSE(iframe_request_other_domain_.finished());
521 EXPECT_TRUE(view_.shown_); 525 EXPECT_TRUE(view_.shown_);
522 Closing(); 526 Closing();
523 EXPECT_TRUE(request2_.finished()); 527 EXPECT_TRUE(request2_.finished());
524 EXPECT_FALSE(iframe_request_other_domain_.finished()); 528 EXPECT_FALSE(iframe_request_other_domain_.finished());
525 Closing(); 529 Closing();
526 EXPECT_TRUE(iframe_request_other_domain_.finished()); 530 EXPECT_TRUE(iframe_request_other_domain_.finished());
527 EXPECT_FALSE(view_.shown_); 531 EXPECT_FALSE(view_.shown_);
528 } 532 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698