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

Side by Side Diff: extensions/browser/api/bluetooth/bluetooth_private_apitest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "device/bluetooth/test/mock_bluetooth_adapter.h" 9 #include "device/bluetooth/test/mock_bluetooth_adapter.h"
10 #include "device/bluetooth/test/mock_bluetooth_device.h" 10 #include "device/bluetooth/test/mock_bluetooth_device.h"
(...skipping 12 matching lines...) Expand all
23 using device::MockBluetoothDiscoverySession; 23 using device::MockBluetoothDiscoverySession;
24 using testing::_; 24 using testing::_;
25 using testing::Eq; 25 using testing::Eq;
26 using testing::InSequence; 26 using testing::InSequence;
27 using testing::NiceMock; 27 using testing::NiceMock;
28 using testing::Return; 28 using testing::Return;
29 using testing::ReturnPointee; 29 using testing::ReturnPointee;
30 using testing::WithArgs; 30 using testing::WithArgs;
31 using testing::WithoutArgs; 31 using testing::WithoutArgs;
32 32
33 namespace bt = extensions::core_api::bluetooth; 33 namespace bt = extensions::api::bluetooth;
34 namespace bt_private = extensions::core_api::bluetooth_private; 34 namespace bt_private = extensions::api::bluetooth_private;
35 35
36 namespace extensions { 36 namespace extensions {
37 37
38 namespace { 38 namespace {
39 const char kTestExtensionId[] = "jofgjdphhceggjecimellaapdjjadibj"; 39 const char kTestExtensionId[] = "jofgjdphhceggjecimellaapdjjadibj";
40 const char kAdapterName[] = "Helix"; 40 const char kAdapterName[] = "Helix";
41 const char kDeviceName[] = "Red"; 41 const char kDeviceName[] = "Red";
42 42
43 MATCHER_P(IsFilterEqual, a, "") { 43 MATCHER_P(IsFilterEqual, a, "") {
44 return arg->Equals(*a); 44 return arg->Equals(*a);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 .WillOnce(Return(true)); 246 .WillOnce(Return(true));
247 EXPECT_CALL(*mock_discovery_session_, 247 EXPECT_CALL(*mock_discovery_session_,
248 SetDiscoveryFilterRaw(Eq(nullptr), _, _)) 248 SetDiscoveryFilterRaw(Eq(nullptr), _, _))
249 .Times(1) 249 .Times(1)
250 .WillOnce(InvokeCallbackArgument<1>()); 250 .WillOnce(InvokeCallbackArgument<1>());
251 ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/discovery_filter")) 251 ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/discovery_filter"))
252 << message_; 252 << message_;
253 } 253 }
254 254
255 } // namespace extensions 255 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698