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

Side by Side Diff: base/process/memory_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « base/prefs/testing_pref_service.cc ('k') | base/process/process_metrics_unittest.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #define _CRT_SECURE_NO_WARNINGS 5 #define _CRT_SECURE_NO_WARNINGS
6 6
7 #include "base/process/memory.h" 7 #include "base/process/memory.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/debug/alias.h" 12 #include "base/debug/alias.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/googletest/include/gtest/gtest.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include <windows.h> 17 #include <windows.h>
18 #endif 18 #endif
19 #if defined(OS_POSIX) 19 #if defined(OS_POSIX)
20 #include <errno.h> 20 #include <errno.h>
21 #endif 21 #endif
22 #if defined(OS_MACOSX) 22 #if defined(OS_MACOSX)
23 #include <malloc/malloc.h> 23 #include <malloc/malloc.h>
24 #include "base/mac/mac_util.h" 24 #include "base/mac/mac_util.h"
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 for (size_t i = 0; i < (kSafeCallocItems * kSafeCallocSize); ++i) 478 for (size_t i = 0; i < (kSafeCallocItems * kSafeCallocSize); ++i)
479 EXPECT_EQ(0, bytes[i]); 479 EXPECT_EQ(0, bytes[i]);
480 free(value_); 480 free(value_);
481 481
482 EXPECT_FALSE(base::UncheckedCalloc(1, test_size_, &value_)); 482 EXPECT_FALSE(base::UncheckedCalloc(1, test_size_, &value_));
483 EXPECT_TRUE(value_ == NULL); 483 EXPECT_TRUE(value_ == NULL);
484 } 484 }
485 #endif // !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) 485 #endif // !defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
486 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && !(defined(OS_WIN) && 486 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && !(defined(OS_WIN) &&
487 // !defined(ALLOCATOR_SHIM)) && !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) 487 // !defined(ALLOCATOR_SHIM)) && !defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
OLDNEW
« no previous file with comments | « base/prefs/testing_pref_service.cc ('k') | base/process/process_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698