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

Side by Side Diff: blimp/client/core/blimp_client_context_impl_unittest.cc

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)
Patch Set: Magic now happens Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/core/blimp_client_context_impl.h" 5 #include "blimp/client/core/blimp_client_context_impl.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 TestBlimpClientContextDelegate delegate; 52 TestBlimpClientContextDelegate delegate;
53 blimp_client_context.SetDelegate(&delegate); 53 blimp_client_context.SetDelegate(&delegate);
54 54
55 BlimpContents* attached_blimp_contents = nullptr; 55 BlimpContents* attached_blimp_contents = nullptr;
56 56
57 EXPECT_CALL(delegate, AttachBlimpContentsHelpers(testing::_)) 57 EXPECT_CALL(delegate, AttachBlimpContentsHelpers(testing::_))
58 .WillOnce(testing::SaveArg<0>(&attached_blimp_contents)) 58 .WillOnce(testing::SaveArg<0>(&attached_blimp_contents))
59 .RetiresOnSaturation(); 59 .RetiresOnSaturation();
60 60
61 std::unique_ptr<BlimpContents> blimp_contents = 61 std::unique_ptr<BlimpContents> blimp_contents =
62 blimp_client_context.CreateBlimpContents(); 62 blimp_client_context.CreateBlimpContents(nullptr);
63 DCHECK(blimp_contents); 63 DCHECK(blimp_contents);
64 DCHECK_EQ(blimp_contents.get(), attached_blimp_contents); 64 DCHECK_EQ(blimp_contents.get(), attached_blimp_contents);
65 } 65 }
66 66
67 } // namespace 67 } // namespace
68 } // namespace client 68 } // namespace client
69 } // namespace blimp 69 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698