diff options
author | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 22:15:23 +0000 |
---|---|---|
committer | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 22:15:23 +0000 |
commit | cab208eb0702d3541a7fa430889c26a3d1182120 (patch) | |
tree | a5ddeb04c32edd7ca0288ea8614d33caf2bb01e1 /device/test | |
parent | 2b392e59ab9a72858d224bad9e422fe40a696a69 (diff) | |
download | chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.zip chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.tar.gz chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.tar.bz2 |
Moved bluetooth adapter files from chrome/browser/chromeos/bluetooth/ to device/bluetooth/. device/bluetooth/ is a new directory to host the bluetooth related files.
I also changed the namespace from chromeos to bluetooth under new directory.
BUG=135470
Review URL: https://chromiumcodereview.appspot.com/11075006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/test')
-rw-r--r-- | device/test/data/bluetooth/invalid_uuid.xml | 8 | ||||
-rw-r--r-- | device/test/data/bluetooth/medium_uuid.xml | 8 | ||||
-rw-r--r-- | device/test/data/bluetooth/rfcomm.xml | 39 | ||||
-rw-r--r-- | device/test/data/bluetooth/short_uuid.xml | 8 | ||||
-rw-r--r-- | device/test/data/bluetooth/uppercase_uuid.xml | 8 | ||||
-rw-r--r-- | device/test/device_test_suite.cc | 18 | ||||
-rw-r--r-- | device/test/device_test_suite.h | 19 | ||||
-rw-r--r-- | device/test/run_all_unittests.cc | 10 |
8 files changed, 118 insertions, 0 deletions
diff --git a/device/test/data/bluetooth/invalid_uuid.xml b/device/test/data/bluetooth/invalid_uuid.xml new file mode 100644 index 0000000..2b33304 --- /dev/null +++ b/device/test/data/bluetooth/invalid_uuid.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<record> + <attribute id="0x0001"> + <sequence> + <uuid value="01234567:89AB-CDEF-0123-456789ABCDEF" /> + </sequence> + </attribute> +</record> diff --git a/device/test/data/bluetooth/medium_uuid.xml b/device/test/data/bluetooth/medium_uuid.xml new file mode 100644 index 0000000..432d7fe --- /dev/null +++ b/device/test/data/bluetooth/medium_uuid.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<record> + <attribute id="0x0001"> + <sequence> + <uuid value="0x00001101" /> + </sequence> + </attribute> +</record> diff --git a/device/test/data/bluetooth/rfcomm.xml b/device/test/data/bluetooth/rfcomm.xml new file mode 100644 index 0000000..ec3bdec --- /dev/null +++ b/device/test/data/bluetooth/rfcomm.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<record> + <attribute id="0x0000"> + <uint32 value="0x00010003" /> + </attribute> + <attribute id="0x0001"> + <sequence> + <uuid value="01234567-89ab-cdef-0123-456789abcdef" /> + </sequence> + </attribute> + <attribute id="0x0004"> + <sequence> + <sequence> + <uuid value="0x0100" /> + </sequence> + <sequence> + <uuid value="0x0003" /> + <uint8 value="0x0c" /> + </sequence> + </sequence> + </attribute> + <attribute id="0x0005"> + <sequence> + <uuid value="0x1002" /> + </sequence> + </attribute> + <attribute id="0x0009"> + <sequence> + <sequence> + <uuid value="0x1108" /> + <uint16 value="0x0102" /> + </sequence> + </sequence> + </attribute> + <attribute id="0x0100"> + <text value="Headset Audio Gateway" /> + </attribute> +</record> diff --git a/device/test/data/bluetooth/short_uuid.xml b/device/test/data/bluetooth/short_uuid.xml new file mode 100644 index 0000000..9ad3c9f --- /dev/null +++ b/device/test/data/bluetooth/short_uuid.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<record> + <attribute id="0x0001"> + <sequence> + <uuid value="0x1101" /> + </sequence> + </attribute> +</record> diff --git a/device/test/data/bluetooth/uppercase_uuid.xml b/device/test/data/bluetooth/uppercase_uuid.xml new file mode 100644 index 0000000..4e0574f --- /dev/null +++ b/device/test/data/bluetooth/uppercase_uuid.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<record> + <attribute id="0x0001"> + <sequence> + <uuid value="01234567-89AB-CDEF-0123-456789ABCDEF" /> + </sequence> + </attribute> +</record> diff --git a/device/test/device_test_suite.cc b/device/test/device_test_suite.cc new file mode 100644 index 0000000..6556076 --- /dev/null +++ b/device/test/device_test_suite.cc @@ -0,0 +1,18 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "device/test/device_test_suite.h" + +#include "content/public/common/content_client.h" + +DeviceTestSuite::DeviceTestSuite(int argc, char** argv) + : content::ContentTestSuiteBase(argc, argv) { +} + +DeviceTestSuite::~DeviceTestSuite() { +} + +content::ContentClient* DeviceTestSuite::CreateClientForInitialization() { + return new content::ContentClient(); +} diff --git a/device/test/device_test_suite.h b/device/test/device_test_suite.h new file mode 100644 index 0000000..15059ab --- /dev/null +++ b/device/test/device_test_suite.h @@ -0,0 +1,19 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DEVICE_TEST_DEVICE_TEST_SUITE_H_ +#define DEVICE_TEST_DEVICE_TEST_SUITE_H_ + +#include "content/public/test/content_test_suite_base.h" + +class DeviceTestSuite : public content::ContentTestSuiteBase { + public: + DeviceTestSuite(int argc, char** argv); + virtual ~DeviceTestSuite(); + + protected: + virtual content::ContentClient* CreateClientForInitialization() OVERRIDE; +}; + +#endif // DEVICE_TEST_DEVICE_TEST_SUITE_H_ diff --git a/device/test/run_all_unittests.cc b/device/test/run_all_unittests.cc new file mode 100644 index 0000000..36e6e51 --- /dev/null +++ b/device/test/run_all_unittests.cc @@ -0,0 +1,10 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/public/test/unittest_test_suite.h" +#include "device/test/device_test_suite.h" + +int main(int argc, char **argv) { + return content::UnitTestTestSuite(new DeviceTestSuite(argc, argv)).Run(); +} |