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

Side by Side Diff: chrome/browser/extensions/api/proxy/proxy_api_helpers_unittest.cc

Issue 1221033002: Add proxy_config component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update copyrights Created 5 years, 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/proxy/proxy_api_helpers.cc ('k') | chrome/browser/extensions/api/proxy/proxy_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698