OLD | NEW |
1 // Copyright 2006, Google Inc. | 1 // Copyright 2006, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 // Declares a friend test that does not use a fixture. | 41 // Declares a friend test that does not use a fixture. |
42 FRIEND_TEST(PrivateCodeTest, CanAccessPrivateMembers); | 42 FRIEND_TEST(PrivateCodeTest, CanAccessPrivateMembers); |
43 | 43 |
44 // Declares a friend test that uses a fixture. | 44 // Declares a friend test that uses a fixture. |
45 FRIEND_TEST(PrivateCodeFixtureTest, CanAccessPrivateMembers); | 45 FRIEND_TEST(PrivateCodeFixtureTest, CanAccessPrivateMembers); |
46 | 46 |
47 PrivateCode(); | 47 PrivateCode(); |
48 | 48 |
49 int x() const { return x_; } | 49 int x() const { return x_; } |
| 50 |
50 private: | 51 private: |
51 void set_x(int an_x) { x_ = an_x; } | 52 void set_x(int an_x) { x_ = an_x; } |
52 int x_; | 53 int x_; |
53 }; | 54 }; |
54 | 55 |
55 #endif // GTEST_TEST_PRODUCTION_H_ | 56 #endif // GTEST_TEST_PRODUCTION_H_ |
OLD | NEW |