OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 class defines tests that implementations of InvalidationFrontend should | 5 // This class defines tests that implementations of InvalidationFrontend should |
6 // pass in order to be conformant. Here's how you use it to test your | 6 // pass in order to be conformant. Here's how you use it to test your |
7 // implementation. | 7 // implementation. |
8 // | 8 // |
9 // Say your class is called MyInvalidationFrontend. Then you need to define a | 9 // Say your class is called MyInvalidationFrontend. Then you need to define a |
10 // class called MyInvalidationFrontendTestDelegate in | 10 // class called MyInvalidationFrontendTestDelegate in |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 handler.GetLastRetrievedState()); | 375 handler.GetLastRetrievedState()); |
376 | 376 |
377 invalidator->UnregisterInvalidationHandler(&handler); | 377 invalidator->UnregisterInvalidationHandler(&handler); |
378 } | 378 } |
379 | 379 |
380 REGISTER_TYPED_TEST_CASE_P(InvalidationFrontendTest, | 380 REGISTER_TYPED_TEST_CASE_P(InvalidationFrontendTest, |
381 Basic, MultipleHandlers, EmptySetUnregisters, | 381 Basic, MultipleHandlers, EmptySetUnregisters, |
382 GetInvalidatorStateAlwaysCurrent); | 382 GetInvalidatorStateAlwaysCurrent); |
383 | 383 |
384 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_FRONTEND_TEST_TEMPLATE_H_ | 384 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_FRONTEND_TEST_TEMPLATE_H_ |
OLD | NEW |