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 #include "extensions/browser/api/declarative_webrequest/webrequest_action.h" | 5 #include "extensions/browser/api/declarative_webrequest/webrequest_action.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | |
13 #include "base/test/values_test_util.h" | 12 #include "base/test/values_test_util.h" |
14 #include "base/time/time.h" | 13 #include "base/time/time.h" |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
17 #include "chrome/common/extensions/extension_constants.h" | 16 #include "chrome/common/extensions/extension_constants.h" |
18 #include "chrome/common/extensions/extension_test_util.h" | 17 #include "chrome/common/extensions/extension_test_util.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
20 #include "extensions/browser/api/declarative_webrequest/request_stage.h" | 19 #include "extensions/browser/api/declarative_webrequest/request_stage.h" |
21 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h" | 20 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h" |
22 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" | 21 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 for (WebRequestActionSet::Actions::const_iterator it = | 582 for (WebRequestActionSet::Actions::const_iterator it = |
584 action_set->actions().begin(); | 583 action_set->actions().begin(); |
585 it != action_set->actions().end(); | 584 it != action_set->actions().end(); |
586 ++it) { | 585 ++it) { |
587 EXPECT_EQ(kExpectedNames[index], (*it)->GetName()); | 586 EXPECT_EQ(kExpectedNames[index], (*it)->GetName()); |
588 ++index; | 587 ++index; |
589 } | 588 } |
590 } | 589 } |
591 | 590 |
592 } // namespace extensions | 591 } // namespace extensions |
OLD | NEW |