Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 502596b4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add gd/dumpsys/dumpsys.h (and test version)"

parents 6cfac25e 1f5d7ac2
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
/*
 * Copyright 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once
#include <string>

namespace bluetooth {
namespace dumpsys {
const std::string& GetBundledSchemaData();
}  // namespace dumpsys
}  // namespace bluetooth
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once
#include <string>

namespace testing {
const std::string& GetBundledSchemaData();
}  // namespace testing
+4 −9
Original line number Diff line number Diff line
@@ -14,26 +14,21 @@
 * limitations under the License.
 */

#include <list>
#include <queue>

#include "dumpsys/filter.h"

#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include <list>
#include <queue>

#include "dumpsys/dumpsys_test_data.h"
#include "test_data/bar.h"
#include "test_data/baz.h"
#include "test_data/foo.h"
#include "test_data/qux.h"
#include "test_data/root.h"

namespace testing {
extern const unsigned char* data;
extern const size_t data_size;
const std::string& GetBundledSchemaData();
}  // namespace testing

namespace testing {

using namespace bluetooth;