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

Side by Side Diff: components/bubble/bubble_manager_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/bubble/bubble_manager.h" 5 #include "components/bubble/bubble_manager.h"
6 6
7 #include "base/macros.h"
7 #include "components/bubble/bubble_controller.h" 8 #include "components/bubble/bubble_controller.h"
8 #include "components/bubble/bubble_manager_mocks.h" 9 #include "components/bubble/bubble_manager_mocks.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace { 12 namespace {
12 13
13 // A "show chain" happens when a bubble decides to show another bubble on close. 14 // A "show chain" happens when a bubble decides to show another bubble on close.
14 // All bubbles must be iterated to handle a close event. If a bubble shows 15 // All bubbles must be iterated to handle a close event. If a bubble shows
15 // another bubble while it's being closed, the iterator can get messed up. 16 // another bubble while it's being closed, the iterator can get messed up.
16 class ChainShowBubbleDelegate : public MockBubbleDelegate { 17 class ChainShowBubbleDelegate : public MockBubbleDelegate {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 EXPECT_TRUE(other_bubble_ref); 398 EXPECT_TRUE(other_bubble_ref);
398 EXPECT_TRUE(closing_bubble_ref); 399 EXPECT_TRUE(closing_bubble_ref);
399 400
400 closing_bubble_ref->CloseBubble(BUBBLE_CLOSE_ACCEPTED); 401 closing_bubble_ref->CloseBubble(BUBBLE_CLOSE_ACCEPTED);
401 402
402 EXPECT_TRUE(other_bubble_ref); 403 EXPECT_TRUE(other_bubble_ref);
403 EXPECT_TRUE(closing_bubble_ref); 404 EXPECT_TRUE(closing_bubble_ref);
404 } 405 }
405 406
406 } // namespace 407 } // namespace
OLDNEW
« no previous file with comments | « components/bubble/bubble_manager_mocks.h ('k') | components/captive_portal/captive_portal_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698