| 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 <memory> | 5 #include <memory> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 EXPECT_EQ("actionTitle2", base::UTF16ToUTF8(notification.buttons()[1].title)); | 491 EXPECT_EQ("actionTitle2", base::UTF16ToUTF8(notification.buttons()[1].title)); |
| 492 | 492 |
| 493 notification.delegate()->ButtonClick(0); | 493 notification.delegate()->ButtonClick(0); |
| 494 ASSERT_TRUE(RunScript("GetMessageFromWorker()", &script_result)); | 494 ASSERT_TRUE(RunScript("GetMessageFromWorker()", &script_result)); |
| 495 EXPECT_EQ("action_button_click actionId1", script_result); | 495 EXPECT_EQ("action_button_click actionId1", script_result); |
| 496 | 496 |
| 497 notification.delegate()->ButtonClick(1); | 497 notification.delegate()->ButtonClick(1); |
| 498 ASSERT_TRUE(RunScript("GetMessageFromWorker()", &script_result)); | 498 ASSERT_TRUE(RunScript("GetMessageFromWorker()", &script_result)); |
| 499 EXPECT_EQ("action_button_click actionId2", script_result); | 499 EXPECT_EQ("action_button_click actionId2", script_result); |
| 500 } | 500 } |
| OLD | NEW |