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"
12 class TestBrowserState
: public BrowserState
{
15 ~TestBrowserState() override
;
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
);
26 scoped_refptr
<net::URLRequestContextGetter
> request_context_
;
27 bool is_off_the_record_
;
31 #endif // IOS_WEB_PUBLIC_TEST_TEST_BROWSER_STATE_H_