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

Side by Side Diff: extensions/browser/api/bluetooth/bluetooth_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 (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.h> 5 #include <string.h>
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/extensions/extension_function_test_utils.h" 10 #include "chrome/browser/extensions/extension_function_test_utils.h"
(...skipping 16 matching lines...) Expand all
27 using device::BluetoothDevice; 27 using device::BluetoothDevice;
28 using device::BluetoothDiscoverySession; 28 using device::BluetoothDiscoverySession;
29 using device::BluetoothUUID; 29 using device::BluetoothUUID;
30 using device::MockBluetoothAdapter; 30 using device::MockBluetoothAdapter;
31 using device::MockBluetoothDevice; 31 using device::MockBluetoothDevice;
32 using device::MockBluetoothDiscoverySession; 32 using device::MockBluetoothDiscoverySession;
33 using extensions::Extension; 33 using extensions::Extension;
34 using extensions::ResultCatcher; 34 using extensions::ResultCatcher;
35 35
36 namespace utils = extension_function_test_utils; 36 namespace utils = extension_function_test_utils;
37 namespace api = extensions::core_api; 37 namespace api = extensions::api;
38 38
39 namespace { 39 namespace {
40 40
41 static const char* kAdapterAddress = "A1:A2:A3:A4:A5:A6"; 41 static const char* kAdapterAddress = "A1:A2:A3:A4:A5:A6";
42 static const char* kName = "whatsinaname"; 42 static const char* kName = "whatsinaname";
43 43
44 class BluetoothApiTest : public ExtensionApiTest { 44 class BluetoothApiTest : public ExtensionApiTest {
45 public: 45 public:
46 BluetoothApiTest() {} 46 BluetoothApiTest() {}
47 47
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // Load and wait for setup 448 // Load and wait for setup
449 ExtensionTestMessageListener listener("ready", true); 449 ExtensionTestMessageListener listener("ready", true);
450 ASSERT_TRUE( 450 ASSERT_TRUE(
451 LoadExtension(test_data_dir_.AppendASCII("bluetooth/device_info"))); 451 LoadExtension(test_data_dir_.AppendASCII("bluetooth/device_info")));
452 EXPECT_TRUE(listener.WaitUntilSatisfied()); 452 EXPECT_TRUE(listener.WaitUntilSatisfied());
453 453
454 listener.Reply("go"); 454 listener.Reply("go");
455 455
456 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); 456 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
457 } 457 }
OLDNEW
« no previous file with comments | « extensions/browser/api/bluetooth/bluetooth_api_utils.cc ('k') | extensions/browser/api/bluetooth/bluetooth_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698