OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Unit tests for helper functions for the Chrome Extensions Proxy Settings API. | 5 // Unit tests for helper functions for the Chrome Extensions Proxy Settings API. |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/extensions/api/proxy/proxy_api_constants.h" | 9 #include "chrome/browser/extensions/api/proxy/proxy_api_constants.h" |
10 #include "chrome/browser/extensions/api/proxy/proxy_api_helpers.h" | 10 #include "chrome/browser/extensions/api/proxy/proxy_api_helpers.h" |
11 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 11 #include "components/proxy_config/proxy_config_dictionary.h" |
12 #include "chrome/browser/prefs/proxy_prefs.h" | 12 #include "components/proxy_config/proxy_prefs.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 namespace keys = proxy_api_constants; | 17 namespace keys = proxy_api_constants; |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kSamplePacScript[] = "test"; | 21 const char kSamplePacScript[] = "test"; |
22 const char kSamplePacScriptAsDataUrl[] = | 22 const char kSamplePacScriptAsDataUrl[] = |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 expected.Append(new base::StringValue("s1")); | 424 expected.Append(new base::StringValue("s1")); |
425 expected.Append(new base::StringValue("s2")); | 425 expected.Append(new base::StringValue("s2")); |
426 expected.Append(new base::StringValue("s3")); | 426 expected.Append(new base::StringValue("s3")); |
427 | 427 |
428 scoped_ptr<base::ListValue> out(TokenizeToStringList("s1;s2;s3", ";")); | 428 scoped_ptr<base::ListValue> out(TokenizeToStringList("s1;s2;s3", ";")); |
429 EXPECT_TRUE(base::Value::Equals(&expected, out.get())); | 429 EXPECT_TRUE(base::Value::Equals(&expected, out.get())); |
430 } | 430 } |
431 | 431 |
432 } // namespace proxy_api_helpers | 432 } // namespace proxy_api_helpers |
433 } // namespace extensions | 433 } // namespace extensions |
OLD | NEW |