| OLD | NEW |
| 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 "components/crash/content/app/crash_keys_win.h" | 5 #include "components/crash/content/app/crash_keys_win.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 10 #include "breakpad/src/client/windows/common/ipc_protocol.h" | 12 #include "breakpad/src/client/windows/common/ipc_protocol.h" |
| 11 #include "components/crash/content/app/crash_reporter_client.h" | 13 #include "components/crash/content/app/crash_reporter_client.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 16 |
| 15 namespace breakpad { | 17 namespace breakpad { |
| 16 | 18 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"plat", L"Win32")); | 136 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"plat", L"Win32")); |
| 135 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"ptype", L"made_up_type")); | 137 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"ptype", L"made_up_type")); |
| 136 std::wstring pid_str(base::StringPrintf(L"%d", ::GetCurrentProcessId())); | 138 std::wstring pid_str(base::StringPrintf(L"%d", ::GetCurrentProcessId())); |
| 137 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"pid", pid_str.c_str())); | 139 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"pid", pid_str.c_str())); |
| 138 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"channel", L"-devm")); | 140 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"channel", L"-devm")); |
| 139 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"profile-type", L"temporary")); | 141 EXPECT_EQ(1u, CountKeyValueOccurences(info, L"profile-type", L"temporary")); |
| 140 EXPECT_EQ(256u, CountKeyValueOccurences(info, L"unspecified-crash-key", L"")); | 142 EXPECT_EQ(256u, CountKeyValueOccurences(info, L"unspecified-crash-key", L"")); |
| 141 } | 143 } |
| 142 | 144 |
| 143 } // namespace breakpad | 145 } // namespace breakpad |
| OLD | NEW |