Chromium Code Reviews

Side by Side Diff: sandbox/src/interception_unittest.cc

Issue 231020: Preliminary fixes to enable link dependent objects.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | third_party/tcmalloc/tcmalloc.gyp » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains unit tests for InterceptionManager. 5 // This file contains unit tests for InterceptionManager.
6 // The tests require private information so the whole interception.cc file is 6 // The tests require private information so the whole interception.cc file is
7 // included from this file. 7 // included from this file.
8 8
9 #include <windows.h>
10
9 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
10 #include "sandbox/src/interception.cc" 12 #include "sandbox/src/interception.h"
13 #include "sandbox/src/interception_internal.h"
14 #include "sandbox/src/target_process.h"
11 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
12 16
13 namespace sandbox { 17 namespace sandbox {
14 18
15 // Walks the settings buffer, verifying that the values make sense and counting 19 // Walks the settings buffer, verifying that the values make sense and counting
16 // objects. 20 // objects.
17 // Arguments: 21 // Arguments:
18 // buffer (in): the buffer to walk. 22 // buffer (in): the buffer to walk.
19 // size (in): buffer size 23 // size (in): buffer size
20 // num_dlls (out): count of the dlls on the buffer. 24 // num_dlls (out): count of the dlls on the buffer.
(...skipping 169 matching lines...)
190 int num_dlls, num_functions, num_names; 194 int num_dlls, num_functions, num_names;
191 WalkBuffer(local_buffer.get(), buffer_size, &num_dlls, &num_functions, 195 WalkBuffer(local_buffer.get(), buffer_size, &num_dlls, &num_functions,
192 &num_names); 196 &num_names);
193 197
194 EXPECT_EQ(3, num_dlls); 198 EXPECT_EQ(3, num_dlls);
195 EXPECT_EQ(4, num_functions); 199 EXPECT_EQ(4, num_functions);
196 EXPECT_EQ(0, num_names); 200 EXPECT_EQ(0, num_names);
197 } 201 }
198 202
199 } // namespace sandbox 203 } // namespace sandbox
OLDNEW
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | third_party/tcmalloc/tcmalloc.gyp » ('j') | no next file with comments »

Powered by Google App Engine