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

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc

Issue 501263002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/extensions/api/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just in case Created 6 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 TEST_F(BluetoothEventRouterTest, UnloadExtension) { 86 TEST_F(BluetoothEventRouterTest, UnloadExtension) {
87 scoped_refptr<const extensions::Extension> extension = 87 scoped_refptr<const extensions::Extension> extension =
88 extensions::ExtensionBuilder() 88 extensions::ExtensionBuilder()
89 .SetManifest(extensions::DictionaryBuilder() 89 .SetManifest(extensions::DictionaryBuilder()
90 .Set("name", "BT event router test") 90 .Set("name", "BT event router test")
91 .Set("version", "1.0") 91 .Set("version", "1.0")
92 .Set("manifest_version", 2)) 92 .Set("manifest_version", 2))
93 .SetID(kTestExtensionId) 93 .SetID(kTestExtensionId)
94 .Build(); 94 .Build();
95 95
96 ExtensionRegistry::Get(test_profile_.get()) 96 ExtensionRegistry::Get(test_profile_.get())->TriggerOnUnloaded(
97 ->TriggerOnUnloaded(extension, UnloadedExtensionInfo::REASON_DISABLE); 97 extension.get(), UnloadedExtensionInfo::REASON_DISABLE);
98 98
99 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1); 99 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1);
100 } 100 }
101 101
102 } // namespace extensions 102 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698