diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 21:49:03 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 21:49:03 +0000 |
commit | 8822f38cd5d5006033003e5197a56bed2cc33fea (patch) | |
tree | 2d239e6b8b1557b1e90c5747b63c56238b2fb846 /net/spdy | |
parent | c9b9f10acf2d9e8290739b10bfaf18da4ea9656c (diff) | |
download | chromium_src-8822f38cd5d5006033003e5197a56bed2cc33fea.zip chromium_src-8822f38cd5d5006033003e5197a56bed2cc33fea.tar.gz chromium_src-8822f38cd5d5006033003e5197a56bed2cc33fea.tar.bz2 |
More FRIEND_TEST_ALL_PREFIXES.
TEST=none
BUG=44549
Review URL: http://codereview.chromium.org/3053024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_framer.h | 6 | ||||
-rw-r--r-- | net/spdy/spdy_network_transaction.h | 5 | ||||
-rw-r--r-- | net/spdy/spdy_session.h | 4 | ||||
-rw-r--r-- | net/spdy/spdy_session_pool.h | 4 |
4 files changed, 10 insertions, 9 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index dcd7170..070c870 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -17,10 +17,10 @@ #include <utility> #include "base/basictypes.h" +#include "base/gtest_prod_util.h" #include "base/logging.h" #include "base/scoped_ptr.h" #include "net/spdy/spdy_protocol.h" -#include "testing/gtest/include/gtest/gtest_prod.h" typedef struct z_stream_s z_stream; // Forward declaration for zlib. @@ -245,8 +245,8 @@ class SpdyFramer { static const int kDictionarySize; protected: - FRIEND_TEST(SpdyFramerTest, DataCompression); - FRIEND_TEST(SpdyFramerTest, UnclosedStreamDataCompressors); + FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DataCompression); + FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); friend class net::SpdyNetworkTransactionTest; friend class net::HttpNetworkTransactionTest; friend class net::HttpNetworkLayer; // This is temporary for the server. diff --git a/net/spdy/spdy_network_transaction.h b/net/spdy/spdy_network_transaction.h index 7df2e64..fbf1318 100644 --- a/net/spdy/spdy_network_transaction.h +++ b/net/spdy/spdy_network_transaction.h @@ -9,6 +9,7 @@ #include <deque> #include "base/basictypes.h" +#include "base/gtest_prod_util.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "base/string16.h" @@ -54,8 +55,8 @@ class SpdyNetworkTransaction : public HttpTransaction { virtual uint64 GetUploadProgress() const; private: - FRIEND_TEST(SpdyNetworkTransactionTest, WindowUpdate); - FRIEND_TEST(SpdyNetworkTransactionTest, WindowUpdateOverflow); + FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdate); + FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); enum State { STATE_INIT_CONNECTION, diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h index 03db0ed..812aab8 100644 --- a/net/spdy/spdy_session.h +++ b/net/spdy/spdy_session.h @@ -12,6 +12,7 @@ #include <queue> #include <string> +#include "base/gtest_prod_util.h" #include "base/linked_ptr.h" #include "base/ref_counted.h" #include "net/base/io_buffer.h" @@ -28,7 +29,6 @@ #include "net/spdy/spdy_io_buffer.h" #include "net/spdy/spdy_protocol.h" #include "net/spdy/spdy_session_pool.h" -#include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST namespace net { @@ -143,7 +143,7 @@ class SpdySession : public base::RefCounted<SpdySession>, private: friend class base::RefCounted<SpdySession>; - FRIEND_TEST(SpdySessionTest, GetActivePushStream); + FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); enum State { IDLE, diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h index 1c18438..e0320d3 100644 --- a/net/spdy/spdy_session_pool.h +++ b/net/spdy/spdy_session_pool.h @@ -11,12 +11,12 @@ #include <string> #include "base/basictypes.h" +#include "base/gtest_prod_util.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "net/base/host_port_pair.h" #include "net/base/net_errors.h" #include "net/base/network_change_notifier.h" -#include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST namespace net { @@ -86,7 +86,7 @@ class SpdySessionPool friend class base::RefCounted<SpdySessionPool>; friend class SpdySessionPoolPeer; // For testing. friend class SpdyNetworkTransactionTest; // For testing. - FRIEND_TEST(SpdyNetworkTransactionTest, WindowUpdateOverflow); + FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); typedef std::list<scoped_refptr<SpdySession> > SpdySessionList; typedef std::map<HostPortPair, SpdySessionList*> SpdySessionsMap; |