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

Side by Side Diff: ipc/ipc_tests.h

Issue 10387218: Make GlobalDescriptors::MaybeGet return -1 when the key is not found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modifying the MULTIPROCESS_TEST_MAIN macro so it can be passed a setup method. Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef IPC_IPC_TESTS_H_ 5 #ifndef IPC_IPC_TESTS_H_
6 #define IPC_IPC_TESTS_H_ 6 #define IPC_IPC_TESTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/test/multiprocess_test.h" 9 #include "base/test/multiprocess_test.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 28 matching lines...) Expand all
39 virtual void SetUp() OVERRIDE; 39 virtual void SetUp() OVERRIDE;
40 virtual void TearDown() OVERRIDE; 40 virtual void TearDown() OVERRIDE;
41 41
42 // Spawns a child process of the specified type 42 // Spawns a child process of the specified type
43 base::ProcessHandle SpawnChild(ChildType child_type, IPC::Channel* channel); 43 base::ProcessHandle SpawnChild(ChildType child_type, IPC::Channel* channel);
44 44
45 // Created around each test instantiation. 45 // Created around each test instantiation.
46 MessageLoopForIO* message_loop_; 46 MessageLoopForIO* message_loop_;
47 }; 47 };
48 48
49 // Function that should be passed as the 2nd argument to the
50 // MULTIPROCESS_TEST_MAIN macro.
jeremy 2012/06/13 19:25:55 Need a more descriptive comment here e.g. what doe
Jay Civelli 2012/06/13 20:40:49 Done.
51 int MultiProcessTestIPCSetUp();
52
49 #endif // IPC_IPC_TESTS_H_ 53 #endif // IPC_IPC_TESTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698