| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |