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

Side by Side Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc

Issue 370833002: Move resource_type.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix Created 6 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 | Annotate | Revision Log
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 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h" 5 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion.h" 11 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion.h"
12 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta nts.h" 12 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_consta nts.h"
13 #include "content/public/browser/resource_request_info.h" 13 #include "content/public/browser/resource_request_info.h"
14 #include "net/base/request_priority.h" 14 #include "net/base/request_priority.h"
15 #include "net/test/embedded_test_server/embedded_test_server.h" 15 #include "net/test/embedded_test_server/embedded_test_server.h"
16 #include "net/url_request/url_request_test_util.h" 16 #include "net/url_request/url_request_test_util.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::DictionaryValue; 19 using base::DictionaryValue;
20 using base::FundamentalValue; 20 using base::FundamentalValue;
21 using base::ListValue; 21 using base::ListValue;
22 using base::StringValue; 22 using base::StringValue;
23 using base::Value; 23 using base::Value;
24 using content::ResourceType;
24 25
25 namespace extensions { 26 namespace extensions {
26 27
27 namespace keys = declarative_webrequest_constants; 28 namespace keys = declarative_webrequest_constants;
28 29
29 namespace { 30 namespace {
30 const char kUnknownConditionName[] = "unknownType"; 31 const char kUnknownConditionName[] = "unknownType";
31 32
32 base::FilePath TestDataPath(base::StringPiece relative_to_src) { 33 base::FilePath TestDataPath(base::StringPiece relative_to_src) {
33 base::FilePath src_dir; 34 base::FilePath src_dir;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 }; 677 };
677 const size_t kExistingSize[] = { arraysize(kExisting) }; 678 const size_t kExistingSize[] = { arraysize(kExisting) };
678 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests); 679 GetArrayAsVector(kExisting, kExistingSize, 1u, &tests);
679 MatchAndCheck( 680 MatchAndCheck(
680 tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result); 681 tests, keys::kExcludeResponseHeadersKey, stage, &url_request, &result);
681 EXPECT_FALSE(result); 682 EXPECT_FALSE(result);
682 } 683 }
683 684
684 } // namespace 685 } // namespace
685 } // namespace extensions 686 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698