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

Side by Side Diff: components/crash/app/crash_keys_win_unittest.cc

Issue 485893007: Rename components/breakpad to components/crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + iOS tests Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « components/crash/app/crash_keys_win.cc ('k') | components/crash/app/hard_error_handler_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/breakpad/app/crash_keys_win.h" 5 #include "components/crash/app/crash_keys_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "components/breakpad/app/breakpad_client.h" 10 #include "components/crash/app/breakpad_client.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace breakpad { 14 namespace breakpad {
15 15
16 using testing::_; 16 using testing::_;
17 using testing::DoAll; 17 using testing::DoAll;
18 using testing::Return; 18 using testing::Return;
19 using testing::SetArgPointee; 19 using testing::SetArgPointee;
20 20
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 EXPECT_EQ(1, CountKeyValueOccurences(info, L"plat", L"Win32")); 136 EXPECT_EQ(1, CountKeyValueOccurences(info, L"plat", L"Win32"));
137 EXPECT_EQ(1, CountKeyValueOccurences(info, L"ptype", L"made_up_type")); 137 EXPECT_EQ(1, CountKeyValueOccurences(info, L"ptype", L"made_up_type"));
138 std::wstring pid_str(base::StringPrintf(L"%d", ::GetCurrentProcessId())); 138 std::wstring pid_str(base::StringPrintf(L"%d", ::GetCurrentProcessId()));
139 EXPECT_EQ(1, CountKeyValueOccurences(info, L"pid", pid_str.c_str())); 139 EXPECT_EQ(1, CountKeyValueOccurences(info, L"pid", pid_str.c_str()));
140 EXPECT_EQ(1, CountKeyValueOccurences(info, L"channel", L"-devm")); 140 EXPECT_EQ(1, CountKeyValueOccurences(info, L"channel", L"-devm"));
141 EXPECT_EQ(1, CountKeyValueOccurences(info, L"profile-type", L"temporary")); 141 EXPECT_EQ(1, CountKeyValueOccurences(info, L"profile-type", L"temporary"));
142 EXPECT_EQ(256, CountKeyValueOccurences(info, L"unspecified-crash-key", L"")); 142 EXPECT_EQ(256, CountKeyValueOccurences(info, L"unspecified-crash-key", L""));
143 } 143 }
144 144
145 } // namespace breakpad 145 } // namespace breakpad
OLDNEW
« no previous file with comments | « components/crash/app/crash_keys_win.cc ('k') | components/crash/app/hard_error_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698