OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/test/test_api.h" | 5 #include "extensions/browser/api/test/test_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "chrome/browser/chrome_notification_types.h" | |
12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
13 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
14 #include "extensions/browser/extension_function_dispatcher.h" | 13 #include "extensions/browser/extension_function_dispatcher.h" |
15 #include "extensions/browser/extension_system.h" | 14 #include "extensions/browser/extension_system.h" |
| 15 #include "extensions/browser/notification_types.h" |
16 #include "extensions/common/api/test.h" | 16 #include "extensions/common/api/test.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // If you see this error in your test, you need to set the config state | 20 // If you see this error in your test, you need to set the config state |
21 // to be returned by chrome.test.getConfig(). Do this by calling | 21 // to be returned by chrome.test.getConfig(). Do this by calling |
22 // TestGetConfigFunction::set_test_config_state(Value* state) | 22 // TestGetConfigFunction::set_test_config_state(Value* state) |
23 // in test set up. | 23 // in test set up. |
24 const char kNoTestConfigDataError[] = "Test configuration was not set."; | 24 const char kNoTestConfigDataError[] = "Test configuration was not set."; |
25 | 25 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 TestWaitForRoundTripFunction::~TestWaitForRoundTripFunction() {} | 131 TestWaitForRoundTripFunction::~TestWaitForRoundTripFunction() {} |
132 | 132 |
133 bool TestWaitForRoundTripFunction::RunSafe() { | 133 bool TestWaitForRoundTripFunction::RunSafe() { |
134 scoped_ptr<WaitForRoundTrip::Params> params( | 134 scoped_ptr<WaitForRoundTrip::Params> params( |
135 WaitForRoundTrip::Params::Create(*args_)); | 135 WaitForRoundTrip::Params::Create(*args_)); |
136 SetResult(new base::StringValue(params->message)); | 136 SetResult(new base::StringValue(params->message)); |
137 return true; | 137 return true; |
138 } | 138 } |
139 | 139 |
140 } // namespace extensions | 140 } // namespace extensions |
OLD | NEW |