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

Side by Side Diff: chrome/browser/extensions/api/extension_action/browser_action_browsertest.cc

Issue 584513003: Move extension_test_message_listener to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "chrome/browser/extensions/extension_action.h" 7 #include "chrome/browser/extensions/extension_action.h"
8 #include "chrome/browser/extensions/extension_action_manager.h" 8 #include "chrome/browser/extensions/extension_action_manager.h"
9 #include "chrome/browser/extensions/extension_browsertest.h" 9 #include "chrome/browser/extensions/extension_browsertest.h"
10 #include "chrome/browser/extensions/extension_test_message_listener.h"
11 #include "content/public/test/test_utils.h" 10 #include "content/public/test/test_utils.h"
12 #include "extensions/browser/extension_registry.h" 11 #include "extensions/browser/extension_registry.h"
13 #include "extensions/browser/extension_system.h" 12 #include "extensions/browser/extension_system.h"
14 #include "extensions/browser/state_store.h" 13 #include "extensions/browser/state_store.h"
15 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
15 #include "extensions/test/extension_test_message_listener.h"
16 #include "third_party/skia/include/core/SkColor.h" 16 #include "third_party/skia/include/core/SkColor.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 namespace { 20 namespace {
21 21
22 // A key into the StateStore; we don't use any results, but need to know when 22 // A key into the StateStore; we don't use any results, but need to know when
23 // it's initialized. 23 // it's initialized.
24 const char kBrowserActionStorageKey[] = "browser_action"; 24 const char kBrowserActionStorageKey[] = "browser_action";
25 // The name of the extension we add. 25 // The name of the extension we add.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 LOG(WARNING) << "State store already initialized; test guaranteed to pass."; 108 LOG(WARNING) << "State store already initialized; test guaranteed to pass.";
109 109
110 // Wait for the StateStore to load, and fetch the defaults. 110 // Wait for the StateStore to load, and fetch the defaults.
111 WaitForStateStore(profile(), extension->id()); 111 WaitForStateStore(profile(), extension->id());
112 112
113 // Ensure the BrowserAction's badge background is still blue. 113 // Ensure the BrowserAction's badge background is still blue.
114 EXPECT_EQ(SK_ColorBLUE, extension_action->GetBadgeBackgroundColor(0)); 114 EXPECT_EQ(SK_ColorBLUE, extension_action->GetBadgeBackgroundColor(0));
115 } 115 }
116 116
117 } // namespace extensions 117 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698