QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / ios / web / public / test / test_browser_state.h
blob8935041de19940e60d1514865e8a3c201865dc9a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_TEST_TEST_BROWSER_STATE_H_
6 #define IOS_WEB_PUBLIC_TEST_TEST_BROWSER_STATE_H_
8 #include "base/memory/ref_counted.h"
9 #include "ios/web/public/browser_state.h"
11 namespace web {
12 class TestBrowserState : public BrowserState {
13 public:
14 TestBrowserState();
15 ~TestBrowserState() override;
17 // BrowserState:
18 bool IsOffTheRecord() const override;
19 base::FilePath GetStatePath() const override;
20 net::URLRequestContextGetter* GetRequestContext() override;
22 // Makes |IsOffTheRecord| return the given flag value.
23 void SetOffTheRecord(bool flag);
25 private:
26 scoped_refptr<net::URLRequestContextGetter> request_context_;
27 bool is_off_the_record_;
29 } // namespace web
31 #endif // IOS_WEB_PUBLIC_TEST_TEST_BROWSER_STATE_H_