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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/extensions/api/push_messaging/sync_setup_helper.h" | 10 #include "chrome/browser/extensions/api/push_messaging/sync_setup_helper.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // This class provides tests specific to the push messaging | 30 // This class provides tests specific to the push messaging |
31 // canary test server. These tests require network access, | 31 // canary test server. These tests require network access, |
32 // and should not be run by normal buildbots as part of the normal | 32 // and should not be run by normal buildbots as part of the normal |
33 // checkin process. | 33 // checkin process. |
34 class PushMessagingCanaryTest : public ExtensionApiTest { | 34 class PushMessagingCanaryTest : public ExtensionApiTest { |
35 public: | 35 public: |
36 PushMessagingCanaryTest() { | 36 PushMessagingCanaryTest() { |
37 sync_setup_helper_.reset(new SyncSetupHelper()); | 37 sync_setup_helper_.reset(new SyncSetupHelper()); |
38 } | 38 } |
39 | 39 |
40 ~PushMessagingCanaryTest() { | 40 virtual ~PushMessagingCanaryTest() { |
41 } | 41 } |
42 | 42 |
43 virtual void SetUp() OVERRIDE { | 43 virtual void SetUp() OVERRIDE { |
44 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 44 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
45 | 45 |
46 if (command_line->HasSwitch(switches::kPasswordFileForTest)) { | 46 if (command_line->HasSwitch(switches::kPasswordFileForTest)) { |
47 base::FilePath password_file = | 47 base::FilePath password_file = |
48 command_line->GetSwitchValuePath(switches::kPasswordFileForTest); | 48 command_line->GetSwitchValuePath(switches::kPasswordFileForTest); |
49 ASSERT_TRUE(sync_setup_helper_->ReadPasswordFile(password_file)); | 49 ASSERT_TRUE(sync_setup_helper_->ReadPasswordFile(password_file)); |
50 } | 50 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 DVLOG(1) << "push_canary app done loading"; | 175 DVLOG(1) << "push_canary app done loading"; |
176 | 176 |
177 StartRunningTest(); | 177 StartRunningTest(); |
178 | 178 |
179 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 179 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
180 | 180 |
181 LOG(INFO) << "Exiting Push Messaging Canary test"; | 181 LOG(INFO) << "Exiting Push Messaging Canary test"; |
182 } | 182 } |
183 | 183 |
184 } // namespace extensions | 184 } // namespace extensions |
OLD | NEW |