OLD | NEW |
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 NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 5 #ifndef NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/base/cookie_monster.h" | 9 #include "net/base/cookie_monster.h" |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/callback_forward.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class DelayedCookieMonster : public CookieStore { | 19 class DelayedCookieMonster : public CookieStore { |
20 public: | 20 public: |
21 DelayedCookieMonster(); | 21 DelayedCookieMonster(); |
22 | 22 |
23 // Call the asynchronous CookieMonster function, expect it to immediately | 23 // Call the asynchronous CookieMonster function, expect it to immediately |
24 // invoke the internal callback. | 24 // invoke the internal callback. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool did_run_; | 91 bool did_run_; |
92 bool result_; | 92 bool result_; |
93 std::string cookie_; | 93 std::string cookie_; |
94 std::string cookie_line_; | 94 std::string cookie_line_; |
95 std::vector<CookieStore::CookieInfo> cookie_info_; | 95 std::vector<CookieStore::CookieInfo> cookie_info_; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace net | 98 } // namespace net |
99 | 99 |
100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
OLD | NEW |