OLD | NEW |
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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/message_loop/message_loop.h" |
6 #include "content/public/browser/stream_handle.h" | 7 #include "content/public/browser/stream_handle.h" |
7 #include "content/public/browser/stream_info.h" | 8 #include "content/public/browser/stream_info.h" |
8 #include "extensions/browser/api/mime_handler_private/mime_handler_private.h" | 9 #include "extensions/browser/api/mime_handler_private/mime_handler_private.h" |
9 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" | 10 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace extensions { | 13 namespace extensions { |
13 | 14 |
14 class TestStreamHandle : public content::StreamHandle { | 15 class TestStreamHandle : public content::StreamHandle { |
15 public: | 16 public: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ASSERT_FALSE(stream_info_); | 101 ASSERT_FALSE(stream_info_); |
101 | 102 |
102 stream_container_.reset(); | 103 stream_container_.reset(); |
103 service_->GetStreamInfo( | 104 service_->GetStreamInfo( |
104 base::Bind(&MimeHandlerServiceImplTest::GetStreamInfoCallback, | 105 base::Bind(&MimeHandlerServiceImplTest::GetStreamInfoCallback, |
105 base::Unretained(this))); | 106 base::Unretained(this))); |
106 ASSERT_FALSE(stream_info_); | 107 ASSERT_FALSE(stream_info_); |
107 } | 108 } |
108 | 109 |
109 } // namespace extensions | 110 } // namespace extensions |
OLD | NEW |