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

Unified Diff: net/cookies/cookie_store_test_helpers.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cookies/cookie_store_test_callbacks.cc ('k') | net/cookies/cookie_store_test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_store_test_helpers.h
diff --git a/net/cookies/cookie_store_test_helpers.h b/net/cookies/cookie_store_test_helpers.h
deleted file mode 100644
index 760b847846c2ed3ff84d52a6eea718b6fde62e6f..0000000000000000000000000000000000000000
--- a/net/cookies/cookie_store_test_helpers.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
-#define NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
-
-#include "net/cookies/cookie_monster.h"
-
-#include <string>
-#include <vector>
-
-#include "base/callback_forward.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-
-class DelayedCookieMonster : public CookieStore {
- public:
- DelayedCookieMonster();
-
- // Call the asynchronous CookieMonster function, expect it to immediately
- // invoke the internal callback.
- // Post a delayed task to invoke the original callback with the results.
-
- void SetCookieWithOptionsAsync(
- const GURL& url,
- const std::string& cookie_line,
- const CookieOptions& options,
- const CookieMonster::SetCookiesCallback& callback) override;
-
- void GetCookiesWithOptionsAsync(
- const GURL& url,
- const CookieOptions& options,
- const CookieMonster::GetCookiesCallback& callback) override;
-
- void GetAllCookiesForURLAsync(const GURL& url,
- const GetCookieListCallback& callback) override;
-
- virtual bool SetCookieWithOptions(const GURL& url,
- const std::string& cookie_line,
- const CookieOptions& options);
-
- virtual std::string GetCookiesWithOptions(const GURL& url,
- const CookieOptions& options);
-
- virtual void DeleteCookie(const GURL& url,
- const std::string& cookie_name);
-
- void DeleteCookieAsync(const GURL& url,
- const std::string& cookie_name,
- const base::Closure& callback) override;
-
- void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin,
- const base::Time& delete_end,
- const DeleteCallback& callback) override;
-
- void DeleteAllCreatedBetweenForHostAsync(
- const base::Time delete_begin,
- const base::Time delete_end,
- const GURL& url,
- const DeleteCallback& callback) override;
-
- void DeleteSessionCookiesAsync(const DeleteCallback&) override;
-
- CookieMonster* GetCookieMonster() override;
-
- scoped_ptr<CookieStore::CookieChangedSubscription>
- AddCallbackForCookie(const GURL& url, const std::string& name,
- const CookieChangedCallback& callback) override;
-
- private:
-
- // Be called immediately from CookieMonster.
-
- void SetCookiesInternalCallback(bool result);
-
- void GetCookiesWithOptionsInternalCallback(const std::string& cookie);
-
- // Invoke the original callbacks.
-
- void InvokeSetCookiesCallback(
- const CookieMonster::SetCookiesCallback& callback);
-
- void InvokeGetCookieStringCallback(
- const CookieMonster::GetCookiesCallback& callback);
-
- friend class base::RefCountedThreadSafe<DelayedCookieMonster>;
- ~DelayedCookieMonster() override;
-
- scoped_refptr<CookieMonster> cookie_monster_;
-
- bool did_run_;
- bool result_;
- std::string cookie_;
- std::string cookie_line_;
-};
-
-} // namespace net
-
-#endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
« no previous file with comments | « net/cookies/cookie_store_test_callbacks.cc ('k') | net/cookies/cookie_store_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698