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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 16 matching lines...) Expand all
27 const device::BluetoothUUID kAudioProfileUuid("1234"); 27 const device::BluetoothUUID kAudioProfileUuid("1234");
28 const device::BluetoothUUID kHealthProfileUuid("4321"); 28 const device::BluetoothUUID kHealthProfileUuid("4321");
29 29
30 MATCHER_P(IsFilterEqual, a, "") { 30 MATCHER_P(IsFilterEqual, a, "") {
31 return arg.Equals(*a); 31 return arg.Equals(*a);
32 } 32 }
33 } // namespace 33 } // namespace
34 34
35 namespace extensions { 35 namespace extensions {
36 36
37 namespace bluetooth = core_api::bluetooth; 37 namespace bluetooth = api::bluetooth;
38 38
39 class BluetoothEventRouterTest : public ExtensionsTest { 39 class BluetoothEventRouterTest : public ExtensionsTest {
40 public: 40 public:
41 BluetoothEventRouterTest() 41 BluetoothEventRouterTest()
42 : ui_thread_(content::BrowserThread::UI, &message_loop_), 42 : ui_thread_(content::BrowserThread::UI, &message_loop_),
43 mock_adapter_(new testing::StrictMock<device::MockBluetoothAdapter>()), 43 mock_adapter_(new testing::StrictMock<device::MockBluetoothAdapter>()),
44 notification_service_(content::NotificationService::Create()), 44 notification_service_(content::NotificationService::Create()),
45 router_(new BluetoothEventRouter(browser_context())) { 45 router_(new BluetoothEventRouter(browser_context())) {
46 router_->SetAdapterForTest(mock_adapter_); 46 router_->SetAdapterForTest(mock_adapter_);
47 } 47 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 testing::_, testing::_)).Times(1); 117 testing::_, testing::_)).Times(1);
118 118
119 router_->StartDiscoverySession(mock_adapter_, kTestExtensionId, 119 router_->StartDiscoverySession(mock_adapter_, kTestExtensionId,
120 base::Bind(&base::DoNothing), 120 base::Bind(&base::DoNothing),
121 base::Bind(&base::DoNothing)); 121 base::Bind(&base::DoNothing));
122 122
123 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1); 123 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)).Times(1);
124 } 124 }
125 125
126 } // namespace extensions 126 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698