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

Side by Side Diff: extensions/browser/api/mime_handler_private/mime_handler_private_unittest.cc

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 6 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698