OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ |
6 #define IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ | 6 #define IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ios/public/provider/chrome/browser/string_provider.h" | 9 #include "ios/public/provider/chrome/browser/string_provider.h" |
10 | 10 |
11 namespace ios { | 11 namespace ios { |
12 | 12 |
13 // An impementation of StringProvider for use in tests. | 13 // An impementation of StringProvider for use in tests. |
14 class FakeStringProvider : public StringProvider { | 14 class FakeStringProvider : public StringProvider { |
15 public: | 15 public: |
16 FakeStringProvider(); | 16 FakeStringProvider(); |
17 ~FakeStringProvider() override; | 17 ~FakeStringProvider() override; |
18 | 18 |
19 // StringProvider implementation | 19 // StringProvider implementation |
20 std::string GetOmniboxCopyUrlString() override; | 20 std::string GetOmniboxCopyUrlString() override; |
21 int GetAppleFlagsTableTitleID() override; | |
22 int GetAppleFlagsNoExperimentsAvailableID() override; | |
23 base::string16 GetSpoofingInterstitialTitle() override; | 21 base::string16 GetSpoofingInterstitialTitle() override; |
24 base::string16 GetSpoofingInterstitialHeadline() override; | 22 base::string16 GetSpoofingInterstitialHeadline() override; |
25 base::string16 GetSpoofingInterstitialMessage() override; | 23 base::string16 GetSpoofingInterstitialMessage() override; |
26 base::string16 GetSpoofingInterstitialDetails() override; | 24 base::string16 GetSpoofingInterstitialDetails() override; |
27 base::string16 GetSpoofingInterstitialFailure() override; | 25 base::string16 GetSpoofingInterstitialFailure() override; |
28 int GetUnsafePortTitleID() override; | 26 int GetUnsafePortTitleID() override; |
29 int GetUnsafePortHeadlineID() override; | 27 int GetUnsafePortHeadlineID() override; |
30 int GetUnsafePortMessageID() override; | 28 int GetUnsafePortMessageID() override; |
31 int GetUnsafePortDetailsID() override; | 29 int GetUnsafePortDetailsID() override; |
32 base::string16 GetDoneString() override; | 30 base::string16 GetDoneString() override; |
33 base::string16 GetOKString() override; | 31 base::string16 GetOKString() override; |
34 base::string16 GetProductName() override; | 32 base::string16 GetProductName() override; |
35 }; | 33 }; |
36 | 34 |
37 } // namespace ios | 35 } // namespace ios |
38 | 36 |
39 #endif // IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ | 37 #endif // IOS_PUBLIC_TEST_FAKE_STRING_PROVIDER_H_ |
OLD | NEW |