| 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 "content/public/browser/stream_handle.h" | 6 #include "content/public/browser/stream_handle.h" |
| 7 #include "content/public/browser/stream_info.h" | 7 #include "content/public/browser/stream_info.h" |
| 8 #include "extensions/browser/api/mime_handler_private/mime_handler_private.cc" | 8 #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" | 9 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class TestStreamHandle : public content::StreamHandle { | 14 class TestStreamHandle : public content::StreamHandle { |
| 15 public: | 15 public: |
| 16 TestStreamHandle() : url_("stream://url") {} | 16 TestStreamHandle() : url_("stream://url") {} |
| 17 | 17 |
| 18 ~TestStreamHandle() override { | 18 ~TestStreamHandle() override { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 ASSERT_FALSE(stream_info_); | 97 ASSERT_FALSE(stream_info_); |
| 98 | 98 |
| 99 stream_container_.reset(); | 99 stream_container_.reset(); |
| 100 service_->GetStreamInfo( | 100 service_->GetStreamInfo( |
| 101 base::Bind(&MimeHandlerServiceImplTest::GetStreamInfoCallback, | 101 base::Bind(&MimeHandlerServiceImplTest::GetStreamInfoCallback, |
| 102 base::Unretained(this))); | 102 base::Unretained(this))); |
| 103 ASSERT_FALSE(stream_info_); | 103 ASSERT_FALSE(stream_info_); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace extensions | 106 } // namespace extensions |
| OLD | NEW |