2014-10-16 18:09:18 -04:00
|
|
|
|
// Copyright 2014 The Crashpad Authors. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
|
|
#include "minidump/minidump_simple_string_dictionary_writer.h"
|
|
|
|
|
|
2016-01-06 12:22:50 -05:00
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
#include <map>
|
2014-10-16 18:09:18 -04:00
|
|
|
|
#include <string>
|
2015-12-09 17:36:32 -05:00
|
|
|
|
#include <utility>
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
#include "minidump/minidump_extensions.h"
|
2014-10-20 12:11:14 -04:00
|
|
|
|
#include "minidump/test/minidump_string_writer_test_util.h"
|
2014-10-22 18:35:18 -04:00
|
|
|
|
#include "minidump/test/minidump_writable_test_util.h"
|
2015-02-18 14:15:38 -05:00
|
|
|
|
#include "util/file/string_file.h"
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
namespace crashpad {
|
|
|
|
|
namespace test {
|
|
|
|
|
namespace {
|
|
|
|
|
|
2014-10-22 18:35:18 -04:00
|
|
|
|
const MinidumpSimpleStringDictionary* MinidumpSimpleStringDictionaryAtStart(
|
|
|
|
|
const std::string& file_contents,
|
|
|
|
|
size_t count) {
|
|
|
|
|
MINIDUMP_LOCATION_DESCRIPTOR location_descriptor;
|
2015-03-06 16:05:34 -08:00
|
|
|
|
location_descriptor.DataSize = static_cast<uint32_t>(
|
2014-10-22 18:35:18 -04:00
|
|
|
|
sizeof(MinidumpSimpleStringDictionary) +
|
2015-03-06 16:05:34 -08:00
|
|
|
|
count * sizeof(MinidumpSimpleStringDictionaryEntry));
|
2014-10-22 18:35:18 -04:00
|
|
|
|
location_descriptor.Rva = 0;
|
|
|
|
|
return MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>(
|
|
|
|
|
file_contents, location_descriptor);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, EmptySimpleStringDictionary) {
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
EXPECT_FALSE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
ASSERT_EQ(sizeof(MinidumpSimpleStringDictionary),
|
2015-02-18 14:15:38 -05:00
|
|
|
|
string_file.string().size());
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), 0);
|
2014-10-22 18:35:18 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(0u, dictionary->count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, EmptyKeyValue) {
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
ASSERT_EQ(sizeof(MinidumpSimpleStringDictionary) +
|
|
|
|
|
sizeof(MinidumpSimpleStringDictionaryEntry) +
|
|
|
|
|
2 * sizeof(MinidumpUTF8String) + 1 + 3 + 1, // 3 for padding
|
2015-02-18 14:15:38 -05:00
|
|
|
|
string_file.string().size());
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), 1);
|
2014-10-22 18:35:18 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(1u, dictionary->count);
|
|
|
|
|
EXPECT_EQ(12u, dictionary->entries[0].key);
|
|
|
|
|
EXPECT_EQ(20u, dictionary->entries[0].value);
|
|
|
|
|
EXPECT_EQ("",
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ("",
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, OneKeyValue) {
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
char kKey[] = "key";
|
|
|
|
|
char kValue[] = "value";
|
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer->SetKeyValue(kKey, kValue);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
ASSERT_EQ(sizeof(MinidumpSimpleStringDictionary) +
|
|
|
|
|
sizeof(MinidumpSimpleStringDictionaryEntry) +
|
|
|
|
|
2 * sizeof(MinidumpUTF8String) + sizeof(kKey) + sizeof(kValue),
|
2015-02-18 14:15:38 -05:00
|
|
|
|
string_file.string().size());
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), 1);
|
2014-10-22 18:35:18 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(1u, dictionary->count);
|
|
|
|
|
EXPECT_EQ(12u, dictionary->entries[0].key);
|
|
|
|
|
EXPECT_EQ(20u, dictionary->entries[0].value);
|
|
|
|
|
EXPECT_EQ(kKey,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kValue,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, ThreeKeysValues) {
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
char kKey0[] = "m0";
|
|
|
|
|
char kValue0[] = "value0";
|
|
|
|
|
char kKey1[] = "zzz1";
|
|
|
|
|
char kValue1[] = "v1";
|
|
|
|
|
char kKey2[] = "aa2";
|
|
|
|
|
char kValue2[] = "val2";
|
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer_0 =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer_0->SetKeyValue(kKey0, kValue0);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer_0));
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer_1 =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer_1->SetKeyValue(kKey1, kValue1);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer_1));
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer_2 =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer_2->SetKeyValue(kKey2, kValue2);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer_2));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
ASSERT_EQ(sizeof(MinidumpSimpleStringDictionary) +
|
|
|
|
|
3 * sizeof(MinidumpSimpleStringDictionaryEntry) +
|
|
|
|
|
6 * sizeof(MinidumpUTF8String) + sizeof(kKey2) +
|
|
|
|
|
sizeof(kValue2) + 3 + sizeof(kKey0) + 1 + sizeof(kValue0) + 1 +
|
|
|
|
|
sizeof(kKey1) + 3 + sizeof(kValue1),
|
2015-02-18 14:15:38 -05:00
|
|
|
|
string_file.string().size());
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), 3);
|
2014-10-22 18:35:18 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(3u, dictionary->count);
|
|
|
|
|
EXPECT_EQ(28u, dictionary->entries[0].key);
|
|
|
|
|
EXPECT_EQ(36u, dictionary->entries[0].value);
|
|
|
|
|
EXPECT_EQ(48u, dictionary->entries[1].key);
|
|
|
|
|
EXPECT_EQ(56u, dictionary->entries[1].value);
|
|
|
|
|
EXPECT_EQ(68u, dictionary->entries[2].key);
|
|
|
|
|
EXPECT_EQ(80u, dictionary->entries[2].value);
|
|
|
|
|
|
|
|
|
|
// The entries don’t appear in the order they were added. The current
|
|
|
|
|
// implementation uses a std::map and sorts keys, so the entires appear in
|
|
|
|
|
// alphabetical order. However, this is an implementation detail, and it’s OK
|
|
|
|
|
// if the writer stops sorting in this order. Testing for a specific order is
|
|
|
|
|
// just the easiest way to write this test while the writer will output things
|
|
|
|
|
// in a known order.
|
|
|
|
|
EXPECT_EQ(kKey2,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kValue2,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kKey0,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[1].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kValue0,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[1].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kKey1,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[2].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kValue1,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[2].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, DuplicateKeyValue) {
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
char kKey[] = "key";
|
|
|
|
|
char kValue0[] = "fake_value";
|
|
|
|
|
char kValue1[] = "value";
|
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer_0 =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer_0->SetKeyValue(kKey, kValue0);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer_0));
|
2014-10-27 15:01:39 -04:00
|
|
|
|
auto entry_writer_1 =
|
|
|
|
|
make_scoped_ptr(new MinidumpSimpleStringDictionaryEntryWriter());
|
|
|
|
|
entry_writer_1->SetKeyValue(kKey, kValue1);
|
2015-12-09 17:36:32 -05:00
|
|
|
|
dictionary_writer.AddEntry(std::move(entry_writer_1));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
EXPECT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
ASSERT_EQ(sizeof(MinidumpSimpleStringDictionary) +
|
|
|
|
|
sizeof(MinidumpSimpleStringDictionaryEntry) +
|
|
|
|
|
2 * sizeof(MinidumpUTF8String) + sizeof(kKey) + sizeof(kValue1),
|
2015-02-18 14:15:38 -05:00
|
|
|
|
string_file.string().size());
|
2014-10-16 18:09:18 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), 1);
|
2014-10-22 18:35:18 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(1u, dictionary->count);
|
|
|
|
|
EXPECT_EQ(12u, dictionary->entries[0].key);
|
|
|
|
|
EXPECT_EQ(20u, dictionary->entries[0].value);
|
|
|
|
|
EXPECT_EQ(kKey,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].key));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
EXPECT_EQ(kValue1,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-21 14:15:07 -04:00
|
|
|
|
dictionary->entries[0].value));
|
2014-10-16 18:09:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-28 17:00:46 -04:00
|
|
|
|
TEST(MinidumpSimpleStringDictionaryWriter, InitializeFromMap) {
|
|
|
|
|
char kKey0[] = "Dictionaries";
|
|
|
|
|
char kValue0[] = "USEFUL*";
|
|
|
|
|
char kKey1[] = "#1 Key!";
|
|
|
|
|
char kValue1[] = "";
|
|
|
|
|
char kKey2[] = "key two";
|
|
|
|
|
char kValue2[] = "value two";
|
|
|
|
|
|
|
|
|
|
std::map<std::string, std::string> map;
|
|
|
|
|
map[kKey0] = kValue0;
|
|
|
|
|
map[kKey1] = kValue1;
|
|
|
|
|
map[kKey2] = kValue2;
|
|
|
|
|
|
|
|
|
|
MinidumpSimpleStringDictionaryWriter dictionary_writer;
|
|
|
|
|
dictionary_writer.InitializeFromMap(map);
|
|
|
|
|
|
|
|
|
|
EXPECT_TRUE(dictionary_writer.IsUseful());
|
|
|
|
|
|
2015-02-18 14:15:38 -05:00
|
|
|
|
StringFile string_file;
|
|
|
|
|
ASSERT_TRUE(dictionary_writer.WriteEverything(&string_file));
|
2014-10-28 17:00:46 -04:00
|
|
|
|
|
|
|
|
|
const MinidumpSimpleStringDictionary* dictionary =
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpSimpleStringDictionaryAtStart(string_file.string(), map.size());
|
2014-10-28 17:00:46 -04:00
|
|
|
|
ASSERT_TRUE(dictionary);
|
|
|
|
|
ASSERT_EQ(3u, dictionary->count);
|
|
|
|
|
|
|
|
|
|
// The entries don’t appear in the order they were added. The current
|
|
|
|
|
// implementation uses a std::map and sorts keys, so the entires appear in
|
|
|
|
|
// alphabetical order. However, this is an implementation detail, and it’s OK
|
|
|
|
|
// if the writer stops sorting in this order. Testing for a specific order is
|
|
|
|
|
// just the easiest way to write this test while the writer will output things
|
|
|
|
|
// in a known order.
|
|
|
|
|
EXPECT_EQ(kKey1,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[0].key));
|
|
|
|
|
EXPECT_EQ(kValue1,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[0].value));
|
|
|
|
|
EXPECT_EQ(kKey0,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[1].key));
|
|
|
|
|
EXPECT_EQ(kValue0,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[1].value));
|
|
|
|
|
EXPECT_EQ(kKey2,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[2].key));
|
|
|
|
|
EXPECT_EQ(kValue2,
|
2015-02-18 14:15:38 -05:00
|
|
|
|
MinidumpUTF8StringAtRVAAsString(string_file.string(),
|
2014-10-28 17:00:46 -04:00
|
|
|
|
dictionary->entries[2].value));
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-16 18:09:18 -04:00
|
|
|
|
} // namespace
|
|
|
|
|
} // namespace test
|
|
|
|
|
} // namespace crashpad
|